### Question:
ResourceConfig { public List<String> getSubResourceNames() { return subResourceNames == null ? Collections.emptyList() : subResourceNames; }  String getName(); String getPluralName(); String getIdProperty(); List<String> getSubResourceNames(); String getProvider(); String getService(); String getResource(); Class<? extends ResourceProvider> getProviderClass(ClassLoader cl); Class<?> getServiceClass(ClassLoader cl); Class<?> getResourceClass(ClassLoader cl); boolean isExternal(); static final String EXTERNAL_RESOURCE_PLURAL_NAME; }### Answer:
@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()); }