@Test
public void testOnConfiguredStillCreatesInitialUsersWhenExistingUsersAndGroups() {

    // Create a user in the DB before we call onConfigured
    final String existingUserIdentity= "existingUser";
    final String existingUserIdentifier = UUID.randomUUID().toString();
    createUser(existingUserIdentifier, existingUserIdentity);
    // Call onConfigured with initial users
    final String userIdentity1 = "user1";
    final String userIdentity2 = "user2";
    configureWithInitialUsers(userIdentity1, userIdentity2);
    // Verify the initial users were not created
    final Set<User> users = userGroupProvider.getUsers();
    assertEquals(3, users.size());
    assertNotNull(users.stream().filter(u -> u.getIdentity().equals(existingUserIdentity)).findFirst().orElse(null));
    assertNotNull(users.stream().filter(u -> u.getIdentity().equals(userIdentity1)).findFirst().orElse(null));
    assertNotNull(users.stream().filter(u -> u.getIdentity().equals(userIdentity2)).findFirst().orElse(null));
}