@NonNull
    public HealthStateAggregator healthStateAggregator() {
        if (healthStateAggregator == null) {
            final String message = "Cannot access the HealthStateAggregator before HealthFactory setup has occurred";
            LOGGER.error(message);
            throw new IllegalStateException(message);
        }
        return healthStateAggregator;
    }
@Test
    void gettingHealthStateAggregatorBeforeSetShouldResultInException() {
        assertThrows(IllegalStateException.class, () -> healthEnvironment.healthStateAggregator());
    }