How did Pinocchio find out he was made of wood?

His hand caught fire.