@Test
public void testCreateComponent() {

    component.setName(COMPONENT_NAME);
    component.setCategories(Collections.singleton("Antenna"));
    when(componentClient.createComponent(component))
            .thenReturn(CompletableFuture.completedFuture(component));
    SW360Component createdComponent = block(componentClientAdapter.createComponent(this.component));
    assertThat(createdComponent).isEqualTo(component);
    verify(componentClient).createComponent(component);
}