@Test
  public void testEmptyTaskMap() {
    ApplicationType appType = new ApplicationType(Constants.APP_TYPE);
    Configuration conf = new Configuration(false);
    conf.setInt(TonyConfigurationKeys.getInstancesKey(Constants.PS_JOB_NAME), 0);
    TonyApplicationData data = new TonyApplicationData("application_123_456",
        appType, conf, Collections.EMPTY_LIST);
    new TaskMemoryHeuristic(new HeuristicConfigurationData("ignored",
        "ignored", "ignored", appType, Collections.EMPTY_MAP)).apply(data);

  }
Verifies that no exception is thrown when the task map is empty.
test/com/linkedin/drelephant/tony/heuristics/TaskMemoryHeuristicTest.java