@Test
public void testCreateReleaseInvalid() {

    release.setName("");
    try {
        block(releaseClientAdapter.createRelease(release));
        fail("Invalid release not detected");
    } catch (SW360ClientException e) {
        assertThat(e.getMessage()).contains("Cannot create release", release.getName());
        assertThat(e.getCause()).isInstanceOf(IllegalArgumentException.class);
    }
}