@Test
public void testOnConfiguredCreatesInitialUsersWhenNoUsersAndGroups() {

    final String userIdentity1 = "user1";
    final String userIdentity2 = "user2";
    configureWithInitialUsers(userIdentity1, userIdentity2);
    final Set<User> users = userGroupProvider.getUsers();
    assertEquals(2, users.size());
    assertNotNull(users.stream().filter(u -> u.getIdentity().equals(userIdentity1)).findFirst().orElse(null));
    assertNotNull(users.stream().filter(u -> u.getIdentity().equals(userIdentity2)).findFirst().orElse(null));
}