### Question:
ServerLoad { public double getUnusedRamPerc() { return ramLoad > 1 ? 0 : (1 - ramLoad); } ServerLoad(double cpuLoad, double ramLoad, double diskLoad); double getTotalOverload(); double getCpuLoad(); double getRamLoad(); double getDiskLoad(); double getUnusedCpuPerc(); double getUnusedRamPerc(); double getUnusedDiskPerc(); @Override String toString(); boolean isIdle();  }### Answer:
@Test public void getUnusedMemoryPercWhenThereIsOverload() { assertEquals(0, new ServerLoad(0.1, 1.2, 0.1).getUnusedRamPerc(), DELTA_DOUBLE_COMP); }
@Test public void getUnusedMemoryPercWhenThereIsNoOverload() { assertEquals(0.75, new ServerLoad(0.1, 0.25, 0.1).getUnusedRamPerc(), DELTA_DOUBLE_COMP); }