AwsHelper { public Double getTransferRateInMegabitsPerSecond(Long totalBytesTransferred, Long durationMillis) { return totalBytesTransferred.doubleValue() * BITS_PER_BYTE / durationMillis / 1000; }  AwsParamsDto getAwsParamsDto(); ClientConfiguration getClientConfiguration(AwsParamsDto awsParamsDto); Double getTransferRateInKilobytesPerSecond(Long totalBytesTransferred, Long durationMillis); Double getTransferRateInMegabitsPerSecond(Long totalBytesTransferred, Long durationMillis);  }
@Test public void testGetTransferRateInMegabitsPerSecond() { assertEquals(Double.valueOf(0.8), awsHelper.getTransferRateInMegabitsPerSecond(1000L, 10L)); }