@Test
public void testOnConfiguredCreatesInitialPolicies() {

    // verify no policies in DB
    assertEquals(0, getPolicyCount());
    configure(ADMIN_USER.getIdentity(), NIFI_IDENTITIES, NIFI_GROUP.getName());
    // verify policies got created for admin and NiFi identities
    final Set<AccessPolicy> policies = policyProvider.getAccessPolicies();
    assertNotNull(policies);
    assertEquals(18, policies.size());
}