@Test
public void testGetResources() throws Exception {

  ViewConfig config = getConfig();
  List<ResourceConfig> resources = config.getResources();
  Assert.assertEquals(2, resources.size());
  Assert.assertEquals("resource", resources.get(0).getName());
  Assert.assertEquals("subresource", resources.get(1).getName());
  // check the case where no resources are specified for the view...
  config = getConfig(minimal_xml);
  resources = config.getResources();
  Assert.assertNotNull(resources);
  Assert.assertEquals(0, resources.size());
}