ElasticsearchClusterRequestExecutor implements ClusterRequestExecutor { @Override public <T extends ClusterResponse> T execute( ClusterRequest<T> clusterRequest) { return clusterRequest.accept(this); }  @Override T execute(
		ClusterRequest<T> clusterRequest); @Override HealthClusterResponse executeClusterRequest(
		HealthClusterRequest healthClusterRequest); @Override StateClusterResponse executeClusterRequest(
		StateClusterRequest stateClusterRequest); @Override StatsClusterResponse executeClusterRequest(
		StatsClusterRequest statsClusterRequest); @Override UpdateSettingsClusterResponse executeClusterRequest(
		UpdateSettingsClusterRequest updateSettingsClusterRequest);  }
@Test public void testExecuteHealthClusterRequest() { HealthClusterRequest healthClusterRequest = new HealthClusterRequest( new String[] {RandomTestUtil.randomString()}); _clusterRequestExecutor.execute(healthClusterRequest); Mockito.verify( _healthClusterRequestExecutor ).execute( healthClusterRequest ); }
@Test public void testExecuteStateClusterRequest() { StateClusterRequest stateClusterRequest = new StateClusterRequest( new String[] {RandomTestUtil.randomString()}); _clusterRequestExecutor.execute(stateClusterRequest); Mockito.verify( _stateClusterRequestExecutor ).execute( stateClusterRequest ); }
@Test public void testExecuteStatsClusterRequest() { StatsClusterRequest statsClusterRequest = new StatsClusterRequest( new String[] {RandomTestUtil.randomString()}); _clusterRequestExecutor.execute(statsClusterRequest); Mockito.verify( _statsClusterRequestExecutor ).execute( statsClusterRequest ); }