public void checkSigar() {
Assert.assertTrue(SigarHelper.sigarAvailable());
}
@Test
public void createAndVerifyCPUClassWithSigar() {
CPU cpu = new CPU(EmptyConfiguration.INSTANCE);
Assert.assertTrue(SigarHelper.sigarAvailable());
cpu.start();
cpu.checkValue();
MeasuredResource mRes = cpu.getMeasuredResource();
Assert.assertTrue("MeasuredResource should not be null", mRes!=null);
Assert.assertTrue("MeasuredResource should be a CPUUtilization", mRes instanceof CpuUtilization);
double utilization = cpu.getUtilization();
Assert.assertTrue("Utilization should be > 0", utilization>0);
}