@Test
public void testGetLicenseDetails() {

    SW360SparseLicense sparseLicense = new SW360SparseLicense();
    SW360License sw360License = new SW360License();
    when(licenseClientAdapter.enrichSparseLicense(sparseLicense))
            .thenReturn(sw360License);
    setUp();
    Optional<SW360License> licenseDetails = metaDataReceiver.getLicenseDetails(sparseLicense);
    assertThat(licenseDetails).hasValue(sw360License);
    verify(licenseClientAdapter, times(1)).enrichSparseLicense(sparseLicense);
}