@Test public void testCoverageAnalysis() { Properties.STOPPING_CONDITION = StoppingCondition.MAXTIME; Properties.SEARCH_BUDGET = 10; EvoSuite evosuite = new EvoSuite(); String targetClass = L4_Collections.class.getCanonicalName(); Properties.TARGET_CLASS = targetClass; Properties.CRITERION = new Criterion[] {Criterion.LINE, Criterion.BRANCH}; Properties.MINIMIZE = false; Properties.ASSERTIONS = false; String[] command = new String[] { "-generateSuite", "-class", targetClass }; Object result = evosuite.parseCommandLine(command); GeneticAlgorithm<?> ga = getGAFromResult(result); TestSuiteChromosome best = (TestSuiteChromosome) ga.getBestIndividual(); System.out.println("EvolvedTestSuite:\n" + best); } }