@Test
public void testGetKey() throws Exception {

  List<InstanceConfig> instanceConfigs = InstanceConfigTest.getInstanceConfigs();
  for (InstanceConfig instanceConfig : instanceConfigs) {
    List<PropertyConfig> propertyConfigs = instanceConfig.getProperties();
    Assert.assertTrue(propertyConfigs.size() <= 2);
    Assert.assertEquals("p1", propertyConfigs.get(0).getKey());
    if (propertyConfigs.size() == 2) {
      Assert.assertEquals("p2", propertyConfigs.get(1).getKey());
    }
  }
}