@Override
    public boolean allowRegister() {
        return ReadinessState.REFUSING_TRAFFIC != readinessCheckListener.getReadinessState();
    }
@Test
    public void testAllowRegister() {
        // Setup
        Mockito.doReturn(ReadinessState.ACCEPTING_TRAFFIC).when(readinessCheckListener)
            .getReadinessState();
        // Run the test
        boolean result = healthCheckProviderConfigDelayRegisterChecker.allowRegister();

        // Verify the results
        assertThat(result).isTrue();
    }