@Test
public void testMapReduce134Dependencies() throws Exception {

  ServiceInfo service = metaInfo.getService(STACK_NAME_HDP, "1.3.4", "MAPREDUCE");
  List<ComponentInfo> componentList = service.getComponents();
  Assert.assertEquals(4, componentList.size());
  for (ComponentInfo component : componentList) {
    String name = component.getName();
    if (name.equals("JOBTRACKER")) {
      // dependencies
      Assert.assertEquals(0, component.getDependencies().size());
      // component auto deploy
      Assert.assertNull(component.getAutoDeploy());
      // cardinality
      Assert.assertEquals("1", component.getCardinality());
    }
    if (name.equals("TASKTRACKER")) {
      // dependencies
      Assert.assertEquals(0, component.getDependencies().size());
      // component auto deploy
      Assert.assertNull(component.getAutoDeploy());
      // cardinality
      Assert.assertEquals("1+", component.getCardinality());
    }
    if (name.equals("HISTORYSERVER")) {
      // dependencies
      Assert.assertEquals(0, component.getDependencies().size());
      // component auto deploy
      AutoDeployInfo autoDeploy = component.getAutoDeploy();
      Assert.assertTrue(autoDeploy.isEnabled());
      Assert.assertEquals("MAPREDUCE/JOBTRACKER", autoDeploy.getCoLocate());
      // cardinality
      Assert.assertEquals("1", component.getCardinality());
    }
    if (name.equals("MAPREDUCE_CLIENT")) {
      // dependencies
      Assert.assertEquals(0, component.getDependencies().size());
      // component auto deploy
      Assert.assertNull(component.getAutoDeploy());
      // cardinality
      Assert.assertEquals("0+", component.getCardinality());
    }
  }
}