@Test
public void testGetLicenseByNameUnresolved() {

    FailedRequestException exception =
            new FailedRequestException("get_license", HttpConstants.STATUS_ERR_NOT_FOUND);
    when(licenseClient.getLicenseByName(LICENSE_NAME))
            .thenReturn(FutureUtils.failedFuture(exception));
    Optional<SW360License> result = block(licenseClientAdapter.getLicenseByName(LICENSE_NAME));
    assertThat(result).isEmpty();
}