### Question:
CrashReproductionGoalFactory extends AbstractFitnessFactory<TestFitnessFunction> { @Override public List<TestFitnessFunction> getCoverageGoals() { return new ArrayList<>(goals.values()); } CrashReproductionGoalFactory(); @Override List<TestFitnessFunction> getCoverageGoals(); String getKey(TestFitnessFunction goal);  }### Answer:
@Test public void testCrashReproductionGoalFactory_multipleCrashes() throws FileNotFoundException { BufferedReader givenStackTrace = new BufferedReader(new StringReader("java.lang.IllegalArgumentException:\n" + "\tat eu.stamp.ClassA.method2(ClassA.java:11)\n" + "\tat eu.stamp.ClassB.method1(ClassB.java:20)")); StackTrace target = Mockito.spy(new StackTrace()); Mockito.doReturn(givenStackTrace).when(target).readFromFile(anyString()); target.setup("", 2); CrashProperties.getInstance().setupStackTrace(target); Assert.assertEquals(CrashProperties.getInstance().getCrashesSize(),2); CrashProperties.fitnessFunctions = new CrashProperties.FitnessFunction[]{CrashProperties.FitnessFunction.IntegrationSingleObjective}; crashReproductionGoalFactory = new CrashReproductionGoalFactory(); assertEquals(crashReproductionGoalFactory.getCoverageGoals().size(),2); }