@Test
public void testGetLicenseDetailsException() {

    SW360SparseLicense license = new SW360SparseLicense().setShortName("foo");
    when(licenseClientAdapter.enrichSparseLicense(license))
            .thenThrow(new SW360ClientException("License lookup failed"));
    setUp();
    Optional<SW360License> licenseDetails = metaDataReceiver.getLicenseDetails(license);
    assertThat(licenseDetails).isEmpty();
}