class DefaultAvailableCapacityService implements AvailableCapacityService {

    @Override
    public Optional<ResourceDimension> totalCapacityOf(Tier tier) {
        return Optional.ofNullable(availableCapacity.get(tier));
    }

    @Inject public  DefaultAvailableCapacityService(CapacityManagementConfiguration configuration,
                                           ServerInfoResolver serverInfoResolver,
                                           AgentManagementService agentManagementService,
                                           Registry registry);
    @VisibleForTesting  DefaultAvailableCapacityService(CapacityManagementConfiguration configuration,
                                    ServerInfoResolver serverInfoResolver,
                                    AgentManagementService agentManagementService,
                                    Registry registry,
                                    Scheduler scheduler);

}