@Test
public void testGetSystemConsumption() throws Exception {

    lastEvaluation.set(generator.getEvaluation());
    testScheduler.advanceTimeBy(DefaultResourceConsumptionService.UPDATE_INTERVAL_MS, TimeUnit.MILLISECONDS);
    Optional<CompositeResourceConsumption> resultOpt = resourceConsumptionService.getSystemConsumption();
    assertThat(resultOpt).isNotEmpty();
}