AwsHelper { public AwsParamsDto getAwsParamsDto() { String httpProxyHost = configurationHelper.getProperty(ConfigurationValue.HTTP_PROXY_HOST); Integer httpProxyPort = configurationHelper.getProperty(ConfigurationValue.HTTP_PROXY_PORT, Integer.class); String awsRegionName = configurationHelper.getProperty(ConfigurationValue.AWS_REGION_NAME); AwsParamsDto awsParamsDto = new AwsParamsDto(); awsParamsDto.setHttpProxyHost(httpProxyHost); awsParamsDto.setHttpProxyPort(httpProxyPort); awsParamsDto.setAwsRegionName(awsRegionName); return awsParamsDto; }  AwsParamsDto getAwsParamsDto(); ClientConfiguration getClientConfiguration(AwsParamsDto awsParamsDto); Double getTransferRateInKilobytesPerSecond(Long totalBytesTransferred, Long durationMillis); Double getTransferRateInMegabitsPerSecond(Long totalBytesTransferred, Long durationMillis);  }
@Test public void testGetAwsParamsDto() throws Exception { AwsParamsDto resultAwsParamsDto = awsHelper.getAwsParamsDto(); assertEquals(configurationHelper.getProperty(ConfigurationValue.HTTP_PROXY_HOST), resultAwsParamsDto.getHttpProxyHost()); assertEquals(configurationHelper.getProperty(ConfigurationValue.HTTP_PROXY_PORT, Integer.class), resultAwsParamsDto.getHttpProxyPort()); assertNotNull(resultAwsParamsDto); }