@Test
public void userHasAppliedForProjectReturnsTrueWhenApplicationIsPresent() {

    // given
    given(applicationRepoMock.existsByUserAndProject(userMock, projectMock)).willReturn(true);
    // when
    boolean actualApplied = applicationService.userHasAppliedForProject(userMock, projectMock);
    // then
    assertThat(actualApplied).isTrue();
}