@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()); } } }
public String getKey() { return key; }
PropertyConfig { public String getKey() { return key; } }
PropertyConfig { public String getKey() { return key; }  }
PropertyConfig { public String getKey() { return key; }  String getKey(); String getValue(); }
PropertyConfig { public String getKey() { return key; }  String getKey(); String getValue();  }