@Test
public void testGetProperties() throws Exception {

  List<InstanceConfig> instances = getInstanceConfigs();
  Assert.assertEquals(2, instances.size());
  List<PropertyConfig> properties = instances.get(0).getProperties();
  Assert.assertEquals(2, properties.size());
  properties = instances.get(1).getProperties();
  Assert.assertEquals(1, properties.size());
  // check the case where no properties are specified for the instance...
  instances = getInstanceConfigs(xml_no_properties);
  Assert.assertEquals(1, instances.size());
  properties = instances.get(0).getProperties();
  Assert.assertNotNull(properties);
  Assert.assertEquals(0, properties.size());
}