void () { assertEquals("compiler", p.getGoalPrefix()); List<String> qualifiedGoals = new ArrayList<>(); List<String> displayNames = new ArrayList<>(); List<String> goals = new ArrayList<>(); for (MavenPluginInfo.Mojo m : p.getMojos()) { goals.add(m.getGoal()); qualifiedGoals.add(m.getQualifiedGoal()); displayNames.add(m.getDisplayName()); } assertOrderedElementsAreEqual(goals, "compile", "testCompile"); assertOrderedElementsAreEqual(qualifiedGoals, "org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile", "org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile"); assertOrderedElementsAreEqual(displayNames, "compiler:compile", "compiler:testCompile"); }