@Test (timeout = 20000)
public void refreshAndCpuUsage() throws InterruptedException {

  WindowsResourceCalculatorPluginTester tester = new WindowsResourceCalculatorPluginTester();
  // info str derived from windows shell command has \r\n termination
  tester.infoStr = "17177038848,8589467648,15232745472,6400417792,1,2805000,6261812\r\n";
  tester.getAvailablePhysicalMemorySize();
  // verify information has been refreshed
  assertTrue(tester.memAvailable == 6400417792L);
  assertTrue(tester.cpuUsage == -1);
  
  tester.infoStr = "17177038848,8589467648,15232745472,5400417792,1,2805000,6261812\r\n";
  tester.getAvailablePhysicalMemorySize();
  // verify information has not been refreshed
  assertTrue(tester.memAvailable == 6400417792L);
  assertTrue(tester.cpuUsage == -1);
  
  Thread.sleep(1500);
  tester.infoStr = "17177038848,8589467648,15232745472,5400417792,1,2805000,6286812\r\n";
  tester.getAvailablePhysicalMemorySize();
  // verify information has been refreshed
  assertTrue(tester.memAvailable == 5400417792L);
  assertTrue(tester.cpuUsage >= 0.1);
}