@Test
public void deleteApplicationDeletesApplicationWhenApplicationNotFound() {

    // given
    var applicationId = 1L;
    given(applicationRepoMock.findByUserAndId(userMock, applicationId)).willReturn(Optional.empty());
    // when / then
    assertThatThrownBy(() -> applicationService.deleteApplication(userMock, applicationId))
            .isInstanceOf(ApplicationNotFoundException.class);
}