WeightedLocalityPolicyManager extends AbstractPolicyManager { @VisibleForTesting public WeightedPolicyInfo getWeightedPolicyInfo() { return weightedPolicyInfo; } WeightedLocalityPolicyManager(); @Override SubClusterPolicyConfiguration serializeConf(); @VisibleForTesting WeightedPolicyInfo getWeightedPolicyInfo(); @VisibleForTesting void setWeightedPolicyInfo(
      WeightedPolicyInfo weightedPolicyInfo);  }
@Test public void testPolicyInfoSetCorrectly() throws Exception { serializeAndDeserializePolicyManager(wfp, expectedPolicyManager, expectedAMRMProxyPolicy, expectedRouterPolicy); Assert.assertEquals(((WeightedLocalityPolicyManager) wfp) .getWeightedPolicyInfo(), policyInfo); }