@Test
public void testExpectedPolicyContents() {

    AllOfType allOf = new AllOfType();
    allOf.getMatch().add(createMatchType("ONAPName", "ONAPName"));
    allOf.getMatch().add(createMatchType("RiskType", "RiskType"));
    allOf.getMatch().add(createMatchType("RiskLevel", "RiskLevel"));
    allOf.getMatch().add(createMatchType("guard", "guard"));
    allOf.getMatch().add(createMatchType("TTLDate", "TTLDate"));
    allOf.getMatch().add(createMatchType("ConfigName", "ConfigName"));
    allOf.getMatch().add(createMatchType("NA", "TTLDate"));
    allOf.getMatch().add(createMatchType("custom", "custom"));
    allOf.getMatch().add(createMatchType("custom", "custom"));
    allOf.getMatch().add(createMatchType("custom", "custom"));
    AnyOfType anyOf = new AnyOfType();
    anyOf.getAllOf().add(allOf);
    TargetType target = new TargetType();
    target.getAnyOf().add(anyOf);
    RuleType rule = new RuleType();
    PolicyType policy = new PolicyType();
    policy.setDescription("i am a description. @CreatedBy: policy designer");
    policy.setTarget(target);
    policy.getCombinerParametersOrRuleCombinerParametersOrVariableDefinition().add(rule);
    PolicyRestAdapter adapter = new PolicyRestAdapter();
    adapter.setPolicyData(policy);
    adapter.setPolicyName("name");
    CreatePolicyController controller = new CreatePolicyController();
    controller.prePopulateBaseConfigPolicyData(adapter, entity);
}