public void testNPE() throws Exception
{
final CalculateScore score = new TrainingSetScore(new BasicMLDataSet(FAKE_DATA, FAKE_DATA));
// create a new random population and train it
NEATPopulation pop = new NEATPopulation(FAKE_DATA[0].length, 1, 50);
pop.reset();
EvolutionaryAlgorithm training1 = NEATUtil.constructNEATTrainer(pop, score);
training1.iteration();
// enough training for now, backup current population to continue later
final ByteArrayOutputStream serialized1 = new ByteArrayOutputStream();
new PersistNEATPopulation().save(serialized1, training1.getPopulation());