@Test
public void testGetReleaseByNameAndVersion() {

    SW360SparseRelease sparseRelease = new SW360SparseRelease()
            .setVersion(RELEASE_VERSION1);
    String componentName = "componentName";
    SW360Component component = getSw360Component(sparseRelease, componentName);
    when(componentClientAdapter.getComponentByName(release.getName()))
            .thenReturn(CompletableFuture.completedFuture(Optional.of(component)));
    Optional<SW360SparseRelease> releaseByNameAndVersion =
            block(releaseClientAdapter.getSparseReleaseByNameAndVersion(release.getName(), release.getVersion()));
    assertThat(releaseByNameAndVersion).isPresent();
    assertThat(releaseByNameAndVersion).hasValue(sparseRelease);
}