@Test
void findUsersInGroup() {

    // Given
    final List<String> userNames = IntStream.range(0, 3)
            .mapToObj(i -> String.format("SomePerson_%s", UUID.randomUUID()))
            .collect(Collectors.toList());
    final String groupName = String.format("SomeGroup_%s", UUID.randomUUID());
    // When
    final User group = createUser(groupName, true);
    final List<User> users = userNames.stream()
            .map(name -> createUser(name, false))
            .peek(u -> userDao.addUserToGroup(u.getUuid(), group.getUuid()))
            .collect(Collectors.toList());
    final List<User> usersInGroup = userDao.findUsersInGroup(group.getUuid(), null);
    // Then
    userNames.forEach(userName -> {
        assertThat(users.stream()
                .anyMatch(u -> userName.equals(u.getName()))).isTrue();
        assertThat(usersInGroup.stream()
                .anyMatch(u -> userName.equals(u.getName()))).isTrue();
    });
}