AutoInstanceConfig extends InstanceConfig { public List<String> getServices() { return services; }  String getStackId(); List<String> getServices(); Set<String> getRoles();  }
@Test public void testGetServices() throws Exception { AutoInstanceConfig config = getAutoInstanceConfigs(VIEW_XML); List<String> serviceNames = config.getServices(); assertEquals(2, serviceNames.size()); assertTrue(serviceNames.contains("HIVE")); assertTrue(serviceNames.contains("HDFS")); }