@Test
public void testCreateComponentInvalid() {

    component.setName("");
    CompletableFuture<SW360Component> futComponent = componentClientAdapter.createComponent(this.component);
    try {
        block(futComponent);
        fail("Invalid component not detected.");
    } catch (SW360ClientException e) {
        assertThat(e.getMessage()).contains("invalid component");
    }
}