Validation of Monte Carlo simulation of neutron production in a spallation experiment