@Test
public void testEasyStuff() {

    CreatePolicyController controller = new CreatePolicyController();
    PolicyRestAdapter adapter = new PolicyRestAdapter();
    controller.prePopulateBaseConfigPolicyData(adapter, null);
    //
    // Create a simple PolicyType
    //
    VariableDefinitionType var = new VariableDefinitionType();
    PolicyType policy = new PolicyType();
    policy.setDescription("i am a description. @CreatedBy: policy designer");
    policy.getCombinerParametersOrRuleCombinerParametersOrVariableDefinition().add(var);
    adapter.setPolicyData(policy);
    adapter.setPolicyName("name");
    controller.prePopulateBaseConfigPolicyData(adapter, entity);
}