@Test
public void testOnConfiguredWhenOnlyInitialNiFiIdentities() {

    // verify no policies in DB
    assertEquals(0, getPolicyCount());
    configure(null, NIFI_IDENTITIES);
    // verify policies got created for admin and NiFi identities
    final Set<AccessPolicy> policies = policyProvider.getAccessPolicies();
    assertNotNull(policies);
    assertEquals(4, policies.size());
    // verify each policy only has the initial admin
    policies.forEach(p -> {
        assertNotNull(p.getUsers());
        assertEquals(3, p.getUsers().size());
        assertFalse(p.getUsers().contains(ADMIN_USER.getIdentifier()));
    });
}