@Test
public void testPrepareToSave() throws PAPException {

    PolicyRestAdapter policyAdapter = new PolicyRestAdapter();
    ClosedLoopPolicy policy = new ClosedLoopPolicy(policyAdapter);
    policyAdapter.setHighestVersion(1);
    policyAdapter.setPolicyType("Config");
    policyAdapter.setNewFileName("foo.xml");
    policy.prepareToSave();
    assertEquals(policy.isPreparedToSave(), true);
}