task("lil", "jobH", "h", 1, GB, GB, PRODUCTION, RUNNING, Optional.of("queue")),
task("lil", "jobI", "i", 1, GB, GB, PRODUCTION, FINISHED, NOT_DEDICATED)
);
Set<GlobalMetric> expected = ImmutableSet.of(
new GlobalMetric(TOTAL_CONSUMED, 8, 8 * GB, 8 * GB),
new GlobalMetric(DEDICATED_CONSUMED, 2, 2 * GB, 2 * GB),
new GlobalMetric(QUOTA_CONSUMED, 5, 5 * GB, 5 * GB),
new GlobalMetric(FREE_POOL_CONSUMED, 2, 2 * GB, 2 * GB)
);
assertEquals(expected, ImmutableSet.copyOf(resourceCounter.computeConsumptionTotals()));
}