@Test
public void getUserDataReturnsDataAfterInitializationWhenPresent() {

    // given
    var expectedId = 1337L;
    var expectedFirstName = "First";
    var expectedLastName = "Last";
    var expectedMail = "mail@test.de";
    var expectedLob = "LoB Test";
    var expectedThumbnail = new byte[] {2, 1, 32, 4, 7, 42};
    var expectedData = new UserData(userMock, expectedFirstName, expectedLastName, expectedMail, expectedLob, expectedThumbnail)
            .setId(expectedId)
            .setPictureInitialized(true);
    var uninitializedData = new UserData(userMock, expectedFirstName, expectedLastName, expectedMail, expectedLob)
            .setId(expectedId)
            .setPictureInitialized(false);
    given(userDataRepoMock.findByUser(userMock)).willReturn(Optional.of(uninitializedData));
    given(userDataRepoMock.saveAll(List.of(expectedData))).willReturn(List.of(expectedData));
    given(ldapAdapterMock.getThumbnailPhotos(List.of(USER_ID))).willReturn(Map.of(
            USER_ID, expectedThumbnail
    ));
    // when
    var actualData = repoUserService.getUserData(userMock);
    // then
    assertThat(actualData).isEqualTo(expectedData);
}