@Test
public void testGetServices() throws Exception {

  ClusterDefinition clusterDefinition = new ClusterDefinition(new TestStateProvider(), new TestClusterDefinitionProvider(), new TestHostInfoProvider());
  Set<String> services = clusterDefinition.getServices();
  Assert.assertTrue(services.contains("HDFS"));
  Assert.assertTrue(services.contains("FLUME"));
  Assert.assertTrue(services.contains("OOZIE"));
  Assert.assertTrue(services.contains("MAPREDUCE"));
  Assert.assertTrue(services.contains("HBASE"));
  Assert.assertTrue(services.contains("ZOOKEEPER"));
  Assert.assertTrue(services.contains("HIVE"));
}