### Question:
CpuLoadEstimator implements LoadEstimator { static int calculateRequests(int cpuLoad, int limit, int maxRequests) { if (cpuLoad < limit) { return maxRequests; } if (limit == 100) { return maxRequests; } double fillLevel = (100.0 - cpuLoad) / (100.0 - limit); return (int) Math.round(fillLevel * maxRequests); } CpuLoadEstimator(ThrottlingConfiguration tc); int getMaxRequestPerMinute();  }### Answer:
@Test public void testCalculations() { assertEquals(5, CpuLoadEstimator.calculateRequests(5, 50, 5)); assertEquals(5, CpuLoadEstimator.calculateRequests(100, 100, 5)); assertEquals(5, CpuLoadEstimator.calculateRequests(85, 70, 10)); }