DataBridgeWebClient { public Storage getStorage(String storageName) throws IOException, JAXBException, URISyntaxException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException { LOGGER.info(String.format("Retrieving storage information for \"%s\" storage name from the registration server...", storageName)); final String URI_PATH = HERD_APP_REST_URI_PREFIX + "/storages/" + storageName; URIBuilder uriBuilder = new URIBuilder().setScheme(getUriScheme()).setHost(regServerAccessParamsDto.getRegServerHost()).setPort(regServerAccessParamsDto.getRegServerPort()) .setPath(URI_PATH); Storage storage; try (CloseableHttpClient client = httpClientHelper .createHttpClient(regServerAccessParamsDto.isTrustSelfSignedCertificate(), regServerAccessParamsDto.isDisableHostnameVerification())) { HttpGet request = new HttpGet(uriBuilder.build()); request.addHeader("Accepts", DEFAULT_ACCEPT); if (regServerAccessParamsDto.isUseSsl()) { request.addHeader(getAuthorizationHeader()); } LOGGER.info(String.format(" HTTP GET URI: %s", request.getURI().toString())); storage = getStorage(httpClientOperations.execute(client, request)); } LOGGER.info("Successfully retrieved storage information from the registration server."); LOGGER.info(" Storage name: " + storage.getName()); LOGGER.info(" Attributes: "); for (Attribute attribute : storage.getAttributes()) { LOGGER.info(String.format(" \"%s\"=\"%s\"", attribute.getName(), attribute.getValue())); } return storage; }  @SuppressFBWarnings(value = "VA_FORMAT_STRING_USES_NEWLINE", justification = "We will use the standard carriage return character.") BusinessObjectDataStorageFilesCreateResponse addStorageFiles(BusinessObjectDataKey businessObjectDataKey, UploaderInputManifestDto manifest,
        S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto, String storageName); RegServerAccessParamsDto getRegServerAccessParamsDto(); void setRegServerAccessParamsDto(RegServerAccessParamsDto regServerAccessParamsDto); Storage getStorage(String storageName); @SuppressFBWarnings(value = "VA_FORMAT_STRING_USES_NEWLINE", justification = "We will use the standard carriage return character.") BusinessObjectData preRegisterBusinessObjectData(UploaderInputManifestDto manifest, String storageName, Boolean createNewVersion); BusinessObjectDataStatusUpdateResponse updateBusinessObjectDataStatus(BusinessObjectDataKey businessObjectDataKey, String businessObjectDataStatus);  }
@Test public void testGetStorage() throws Exception { testGetStorage(false); }