@Test
public void testFWDAllZeroANY() throws Exception {

  // Tests how the headroom info are used to split based on the capacity
  // each RM claims to give us.
  // Configure policy to be 100% headroom based
  getPolicyInfo().setHeadroomAlpha(0.5f);
  initializePolicy();
  List<ResourceRequest> resourceRequests = createZeroSizedANYRequest();
  // this receives responses from sc0,sc1,sc2
  prepPolicyWithHeadroom(true);
  Map<SubClusterId, List<ResourceRequest>> response =
      ((FederationAMRMProxyPolicy) getPolicy()).splitResourceRequests(
          resourceRequests, new HashSet<SubClusterId>());
  // we expect all three to appear for a zero-sized ANY
  // pretty print requests
  prettyPrintRequests(response);
  validateSplit(response, resourceRequests);
  // we expect the zero size request to be sent to the first 3 rm (due to
  // the fact that we received responses only from these 3 sublcusters)
  checkExpectedAllocation(response, "subcluster0", 1, 0);
  checkExpectedAllocation(response, "subcluster1", 1, 0);
  checkExpectedAllocation(response, "subcluster2", 1, 0);
  checkExpectedAllocation(response, "subcluster3", -1, -1);
  checkExpectedAllocation(response, "subcluster4", -1, -1);
  checkExpectedAllocation(response, "subcluster5", -1, -1);
  checkTotalContainerAllocation(response, 0);
}