@Test
public void testGetComponentById() {

    when(componentClient.getComponent(COMPONENT_ID))
            .thenReturn(CompletableFuture.completedFuture(component));
    Optional<SW360Component> componentById = block(componentClientAdapter.getComponentById(COMPONENT_ID));
    assertThat(componentById).isPresent();
    assertThat(componentById).hasValue(component);
    verify(componentClient).getComponent(COMPONENT_ID);
}