@Test
public void testCreateLicense() {

    SW360License licenseTemplate = new SW360License()
            .setFullName("testLicense");
    SW360License licenseCreated = new SW360License()
            .setShortName("createdLicense")
            .setFullName("testLicense");
    when(licenseClient.createLicense(licenseTemplate))
            .thenReturn(CompletableFuture.completedFuture(licenseCreated));
    SW360License result = block(licenseClientAdapter.createLicense(licenseTemplate));
    assertThat(result).isEqualTo(licenseCreated);
}