@Test
public void testCreateRelease() {

    SW360SparseRelease sparseRelease = new SW360SparseRelease()
            .setVersion(release.getVersion() + "-noMatch");
    String componentHref = "url/" + ID;
    Self componentSelf = new Self().setHref(componentHref);
    LinkObjects links = new LinkObjects()
            .setSelf(componentSelf);
    SW360Component component = getSw360Component(sparseRelease, "componentName");
    component.setLinks(links);
    when(componentClientAdapter.getComponentByName(release.getName()))
            .thenReturn(CompletableFuture.completedFuture(Optional.of(component)));
    when(releaseClient.createRelease(release))
            .thenReturn(CompletableFuture.completedFuture(release));
    SW360Release createdRelease = block(releaseClientAdapter.createRelease(this.release));
    assertThat(createdRelease).isEqualTo(release);
    verify(releaseClient).createRelease(release);
    assertThat(release.getComponentId()).isEqualTo(component.getId());
}