### Question:
WroModelInspector { public final List<String> getGroupNames() { return new ArrayList<String>(new TreeSet<String>(map.keySet())); } WroModelInspector(final WroModel model); Group getGroupByName(final String name); Collection<String> getGroupNamesContainingResource(final String resourceUri); final List<String> getGroupNames(); boolean hasGroup(final String groupName); String getGroupNamesAsString(); Collection<Resource> getAllUniqueResources(); Collection<Resource> getAllResources();  }### Answer:
@Test public void testGetGroupNames() { final List<String> groupNames = victim.getGroupNames(); Collections.sort(groupNames); final List<String> expected = Arrays.asList("g1", "g2", "g3"); Assert.assertEquals(expected, groupNames); }