@Test
public void testSqoop134Dependencies() throws Exception {

  ServiceInfo service = metaInfo.getService(STACK_NAME_HDP, "1.3.4", "SQOOP");
  List<ComponentInfo> componentList = service.getComponents();
  Assert.assertEquals(1, componentList.size());
  ComponentInfo component = componentList.get(0);
  Assert.assertEquals("SQOOP", component.getName());
  // dependencies
  List<DependencyInfo> dependencyList = component.getDependencies();
  Assert.assertEquals(2, dependencyList.size());
  for (DependencyInfo dependency : dependencyList) {
    if (dependency.getName().equals("HDFS/HDFS_CLIENT")) {
      Assert.assertEquals("host", dependency.getScope());
      Assert.assertEquals(true, dependency.getAutoDeploy().isEnabled());
    } else if (dependency.getName().equals("MAPREDUCE/MAPREDUCE_CLIENT")) {
      Assert.assertEquals("host", dependency.getScope());
      Assert.assertEquals(true, dependency.getAutoDeploy().isEnabled());
    } else {
      Assert.fail("Unexpected dependency");
    }
  }
  // component auto deploy
  Assert.assertNull(component.getAutoDeploy());
  // cardinality
  Assert.assertEquals("0+", component.getCardinality());
}