@Test
public void testGetResourceClass() throws Exception {

  List<ResourceConfig> resourceConfigs = getResourceConfigs();
  Assert.assertEquals(2, resourceConfigs.size());
  Assert.assertTrue(resourceConfigs.get(0).getServiceClass(getClass().getClassLoader()).equals(ViewConfigTest.MyResourceService.class));
  Assert.assertTrue(resourceConfigs.get(1).getServiceClass(getClass().getClassLoader()).equals(ViewConfigTest.MyResourceService.class));
}