@Test
public void testSkipAMContainer() {

  int[][] qData = new int[][] {
      //  /   A   B
      { 100, 50, 50 }, // abs
      { 100, 100, 100 }, // maxcap
      { 100, 100, 0 }, // used
      { 70, 20, 50 }, // pending
      { 0, 0, 0 }, // reserved
      { 5, 4, 1 }, // apps
      { -1, 1, 1 }, // req granularity
      { 2, 0, 0 }, // subqueues
  };
  setAMContainer = true;
  ProportionalCapacityPreemptionPolicy policy = buildPolicy(qData);
  policy.editSchedule();
  
  // By skipping AM Container, all other 24 containers of appD will be
  // preempted
  verify(mDisp, times(24)).handle(argThat(new IsPreemptionRequestFor(appD)));
  // By skipping AM Container, all other 24 containers of appC will be
  // preempted
  verify(mDisp, times(24)).handle(argThat(new IsPreemptionRequestFor(appC)));
  // Since AM containers of appC and appD are saved, 2 containers from appB
  // has to be preempted.
  verify(mDisp, times(2)).handle(argThat(new IsPreemptionRequestFor(appB)));
  setAMContainer = false;
}