@Test
public void testPolicyInfoSetCorrectly() throws Exception {

  serializeAndDeserializePolicyManager(wfp, expectedPolicyManager,
                                       expectedAMRMProxyPolicy,
                                       expectedRouterPolicy);
  //check the policyInfo propagates through ser/der correctly
  Assert.assertEquals(((WeightedLocalityPolicyManager) wfp)
                          .getWeightedPolicyInfo(), policyInfo);
}