ResourceGroup { public Class<? extends ResourceGroupParser> getParserClass() { return resourceGroupParserClass; } 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 testGetParserClass() { ResourceGroup instance = new ResourceGroup("wibble", TestResourceGroupParser.class); Class expResult = TestResourceGroupParser.class; Class result = instance.getParserClass(); assertEquals(expResult, result); }