@Test
public void copyAndSetThumbnailPhotoCopiesAttributesAndSetsThumbnail() {

    // given
    var thumbnailPhoto = new byte[] {-1, 2, -3, 4};
    var expectedId = 2L;
    var expectedFirstName = "First";
    var expectedLastName = "Last";
    var expectedMail = "mail@test.com";
    var expectedLob = "LoB Test";
    var expectedData = new UserData(userMock, expectedFirstName, expectedLastName, expectedMail, expectedLob, thumbnailPhoto)
            .setId(expectedId)
            .setPictureInitialized(true);
    var preInitialized = new UserData(userMock, expectedFirstName, expectedLastName, expectedMail, expectedLob)
            .setId(expectedId);
    // when
    var actualData = repoUserService.copyAndSetThumbnailPhoto(preInitialized, thumbnailPhoto);
    // then
    assertThat(actualData).isEqualTo(expectedData);
}