void (String archetypeId) { Set<MavenArchetype> achetypes = myIndicesFixture.getArchetypeManager().getArchetypes(); List<String> actualNames = new ArrayList<>(); for (MavenArchetype each : achetypes) { actualNames.add(each.groupId + ":" + each.artifactId); } MavenId id = new MavenId(archetypeId); assertTrue(actualNames.toString(), actualNames.contains(id.getGroupId() + ":" + id.getArtifactId())); }