### Question:
CPUDataProvider { public static double getProcessCpuLoad() { return getCpuLoad(false); }  static double getSystemCpuLoad(); static double getProcessCpuLoad();  }### Answer:
@Test public void testGetProcessCpuLoad() { double load = CPUDataProvider.getProcessCpuLoad(); int timeout = 3000; long startTime = System.currentTimeMillis(); while (System.currentTimeMillis() - timeout < startTime && load == -1d) { load = CPUDataProvider.getProcessCpuLoad(); } assertTrue("CPU load should be greater than or equal to 0, was " + load, load >= 0.0d); assertTrue("CPU load should be less than 1 (i.e. less than 100%), was " + load, load <= 1d); }