How did Pinocchio find out he was made out of wood?

His hand caught fire.