@Test
void usage() {

    when(os.getProcessCpuTime()).thenReturn(1000L).thenReturn(2000L);
    double usage = stat.usage();
    assertThat(usage).isEqualTo(0); // first data point should be 0
    usage = stat.usage();
    assertThat(usage).isGreaterThan(0);
}