@Test
public void testCapacityComputationCorrectness() {

    testScheduler.triggerActions();
    Optional<ResourceDimension> capacity = availableCapacityService.totalCapacityOf(Tier.Critical);
    assertThat(capacity).isPresent();
    ResourceDimension criticalExpected = dimensionOf(AwsInstanceType.M4_XLarge, CRITICAL_INSTANCE_COUNT);
    assertThat(capacity).contains(criticalExpected);
}