@Test
public void testHopsworksInstallationDag() throws IOException, KaramelException {

  TaskSubmitter dummyTaskSubmitter = new TaskSubmitter() {
    @Override
    public void submitTask(Task task) throws KaramelException {
      System.out.println(task.uniqueId());
      task.succeed();
    }
    @Override
    public void prepareToStart(Task task) throws KaramelException {
    }
    @Override
    public void killMe(Task task) throws KaramelException {
    }
    @Override
    public void retryMe(Task task) throws KaramelException {
    }
    @Override
    public void skipMe(Task task) throws KaramelException {
    }
    @Override
    public void terminate(Task task) throws KaramelException {
    }
  };
  Settings.CB_CLASSPATH_MODE = true;
  String ymlString = Resources.toString(Resources.getResource("se/kth/karamel/client/model/test-definitions/hopsworks.yml"), Charsets.UTF_8);
  JsonCluster definition = ClusterDefinitionService.yamlToJsonObject(ymlString);
  ClusterRuntime dummyRuntime = MockingUtil.dummyRuntime(definition);
  Map<String, JsonObject> chefJsons = ChefJsonGenerator.generateClusterChefJsonsForInstallation(definition, dummyRuntime);
  ClusterStats clusterStats = new ClusterStats();
  Dag dag = DagBuilder.getInstallationDag(definition, dummyRuntime, clusterStats, dummyTaskSubmitter, chefJsons);
  dag.validate();
  System.out.println(dag.print());
    dag.start();
}