@Test
public void testPreemptionWithVCoreResource() {

  int[][] qData = new int[][]{
      // / A B
      {100, 100, 100}, // maxcap
      {5, 1, 1}, // apps
      {2, 0, 0}, // subqueues
  };
  // Resources can be set like memory:vcores
  String[][] resData = new String[][]{
      // / A B
      {"100:100", "50:50", "50:50"}, // abs
      {"10:100", "10:100", "0"}, // used
      {"70:20", "70:20", "10:100"}, // pending
      {"0", "0", "0"}, // reserved
      {"-1", "1:10", "1:10"}, // req granularity
  };
  // Passing last param as TRUE to use DominantResourceCalculator
  ProportionalCapacityPreemptionPolicy policy = buildPolicy(qData, resData,
      true);
  policy.editSchedule();
  // 4 containers will be preempted here
  verify(mDisp, times(4)).handle(argThat(new IsPreemptionRequestFor(appA)));
}