### Question:
OutputCoverageFactory extends org.evosuite.coverage.io.output.OutputCoverageFactory { @Override public List<OutputCoverageTestFitness> getCoverageGoals() { List<OutputCoverageTestFitness> goals = new ArrayList<>(); List<Method> stackTraceMethods = utility.getStackTraceMethods(); for(Method method: stackTraceMethods){ detectGoals(method,goals); } return goals; }  @Override List<OutputCoverageTestFitness> getCoverageGoals();  }### Answer:
@Test public void testWithRegularClass() throws NoSuchMethodException { Method method1 = Integer.class.getMethod("equals",Object.class); List<Method> methods = new ArrayList<>(); methods.add(method1); Mockito.when(utility.getStackTraceMethods()).thenReturn(methods); List<OutputCoverageTestFitness> goals = outputCoverageFactory.getCoverageGoals(); assert(goals.size() == 2); }