@Test
public void testWithDescriptionEmptyTargetType() throws IOException {

    //
    // Create a simple PolicyType
    //
    PolicyType policy = new PolicyType();
    policy.setTarget(new TargetType());
    policy.setDescription("i am a description. @CreatedBy: policy designer");
    //
    // Now do the test - description and
    // TargetType but its empty
    //
    PolicyRestAdapter adapter = new PolicyRestAdapter();
    adapter.setPolicyData(policy);
    adapter.setPolicyName("name");
    ActionPolicyController controller = new ActionPolicyController();
    assertThatCode(() -> controller.prePopulateActionPolicyData(adapter)).doesNotThrowAnyException();
}