@Test
public void testGetProjectByNameAndVersion() {

    ProjectSearchParams searchParams = ProjectSearchParams.builder()
            .withName(PROJECT_NAME)
            .build();
    when(projectClient.search(searchParams))
            .thenReturn(CompletableFuture.completedFuture(Collections.singletonList(projectWithLink)));
    Optional<SW360Project> projectIdByNameAndVersion =
            block(projectClientAdapter.getProjectByNameAndVersion(PROJECT_NAME, PROJECT_VERSION));
    assertThat(projectIdByNameAndVersion).isPresent();
    assertThat(projectIdByNameAndVersion).contains(projectWithLink);
}