@Test
public void testOnConfiguredWhenOnlyNiFiGroupName() {

    // verify no policies in DB
    assertEquals(0, getPolicyCount());
    configure(null, null, NIFI_GROUP.getName());
    // 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.getGroups());
        assertEquals(1, p.getGroups().size());
        assertTrue(p.getGroups().contains(NIFI_GROUP.getIdentifier()));
    });
}