@Test
public void testGetSubResourceNames() throws Exception {

  List<ResourceConfig> resourceConfigs = getResourceConfigs();
  Assert.assertEquals(2, resourceConfigs.size());
  Assert.assertEquals(1, resourceConfigs.get(0).getSubResourceNames().size());
  Assert.assertEquals("subresource", resourceConfigs.get(0).getSubResourceNames().get(0));
  Assert.assertEquals(0, resourceConfigs.get(1).getSubResourceNames().size());
}