PriceCalculator { static double getMemoryPrice(long gbMillisMapsReduces) { double totalMemoryUsedGbSeconds = (gbMillisMapsReduces) / 1024; double totalMemoryUsedGbHours = totalMemoryUsedGbSeconds / 3600; return totalMemoryUsedGbHours * MEMORY_PER_GB_PER_HOUR_EURO; }    }
@Test public void canGetMemoryPrice() throws Exception { assertEquals(2.23, PriceCalculator.getMemoryPrice(36864000000L), 1.0e-2); }