@Override
    public void available() {
        if (!allocationExcludeChecked) {
            this.checkAllocationEnabledStatus();
        }
    }
@Test
    public void testResetAllocation() throws IOException {
        Settings settings = Settings.builder()
                .put(OpensearchProcessImpl.CLUSTER_ROUTING_ALLOCATION_EXCLUDE_SETTING, nodeName)
                .build();
        when(clusterClient.getSettings(any(), any())).thenReturn(new ClusterGetSettingsResponse(null, settings, null));
        opensearchProcess.available();

        ArgumentCaptor<ClusterUpdateSettingsRequest> settingsRequest =
                ArgumentCaptor.forClass(ClusterUpdateSettingsRequest.class);
        verify(clusterClient).putSettings(settingsRequest.capture(), eq(RequestOptions.DEFAULT));
        assertNull(settingsRequest.getValue()
                .transientSettings()
                .get(OpensearchProcessImpl.CLUSTER_ROUTING_ALLOCATION_EXCLUDE_SETTING)
        );
        assertTrue(opensearchProcess.allocationExcludeChecked);
    }