@Test
public void getUserDataThrowsExceptionWhenDataNotPresent() {

    // given
    var expectedMessage = String.format("Data for User with ID '%s' not found!", USER_ID);
    given(userDataRepoMock.findByUser(userMock)).willReturn(Optional.empty());
    // when / then
    assertThatThrownBy(() -> repoUserService.getUserData(userMock))
            .isInstanceOf(UserDataNotFoundException.class)
            .hasMessage(expectedMessage);
}