ResourceGroup { public String getName() { return groupName; } ResourceGroup(String groupName, Class<? extends ResourceGroupParser> resourceGroupParserClass); String getName(); Class<? extends ResourceGroupParser> getParserClass(); boolean addResource(Resource resource); Resource getResource(Class<? extends ResourceParser> clazz); Resource getResource(String resourceName); @Override String toString();  }
@Test public void testGetName() { ResourceGroup instance = new ResourceGroup("wibble", TestResourceGroupParser.class); String expResult = "wibble"; String result = instance.getName(); assertEquals(expResult, result); }