@Test
public void testSave() throws PAPException {

    PolicyType policyType = new PolicyType();
    PolicyRestAdapter policyAdapter = new PolicyRestAdapter();
    policyAdapter.setPolicyID("id");
    policyAdapter.setHighestVersion(1);
    policyAdapter.setPolicyType("Config");
    policyAdapter.setNewFileName("newfile");
    policyAdapter.setData(policyType);
    policyAdapter.setJsonBody("{\"key\":\"value\"}");
    policyAdapter.setServiceType("svcType");
    OptimizationConfigPolicy policy = new OptimizationConfigPolicy(policyAdapter);
    assertThatThrownBy(() -> policy.savePolicies()).isInstanceOf(Exception.class);
}