@Test
public void testGetInstances() throws Exception {

  ViewConfig config = getConfig(xml);
  List<InstanceConfig> instances = config.getInstances();
  Assert.assertEquals(2, instances.size());
  Assert.assertEquals("INSTANCE1", instances.get(0).getName());
  Assert.assertEquals("INSTANCE2", instances.get(1).getName());
  // check the case where no instances are specified for the view...
  config = getConfig(minimal_xml);
  instances = config.getInstances();
  Assert.assertNotNull(instances);
  Assert.assertEquals(0, instances.size());
}