@Test
public void testDeletePolicyWhenDoesNotExist() {

    configure(ADMIN_USER.getIdentity(), NIFI_IDENTITIES);
    final AccessPolicy policy = new AccessPolicy.Builder()
            .identifierGenerateRandom()
            .resource("/foo")
            .action(RequestAction.READ)
            .addUser("user1")
            .addGroup("group1")
            .build();
    final AccessPolicy deletedPolicy = policyProvider.deleteAccessPolicy(policy);
    assertNull(deletedPolicy);
}