@Test
public void testUpdateComponent() {

    component.setName(COMPONENT_NAME);
    component.setCategories(Collections.singleton("Antenna"));
    SW360Component updatedComponent = new SW360Component();
    updatedComponent.setName(COMPONENT_NAME + "_updated");
    when(componentClient.patchComponent(component))
            .thenReturn(CompletableFuture.completedFuture(updatedComponent));
    SW360Component result = block(componentClientAdapter.updateComponent(component));
    assertThat(result).isEqualTo(updatedComponent);
}