Assert.assertArrayEquals(new String[]{ "A","C","D" }, groupNames.toArray());
}
@Test
public void getSortedNamesAfterRename(){
Group b = factory("B");
Group c = factory("C");
registry.add(c);
registry.add(b);
List<String> groupNames = registry.getSortedNames();
Assert.assertArrayEquals(new String[]{ "B","C" }, groupNames.toArray());