@Test
public void testGetLicenses() {

    List<SW360SparseLicense> licenses = Arrays.asList(new SW360SparseLicense().setShortName("l1"),
            new SW360SparseLicense().setShortName("l2"));
    when(licenseClient.getLicenses())
            .thenReturn(CompletableFuture.completedFuture(licenses));
    List<SW360SparseLicense> result = block(licenseClientAdapter.getLicenses());
    assertThat(result).isEqualTo(licenses);
}