@Test public void succeedWithMethodEndpointPayloadHeaders() { test.performRequest(TestConstants.DUMMY_METHOD, TestConstants.DUMMY_ENDPOINT, TestConstants.DUMMY_PAYLOAD, TestConstants.DUMMY_HEADER_MAP); }
public Response performRequest(@NonNull Request request) { try { return restClient.performRequest(request); } catch (ResponseException responseException) { return responseException.getResponse(); } catch (IOException e) { throw new InternalErrorException(CustomerMessage.INTERNAL_ERROR, e); } }
ElasticsearchClient { public Response performRequest(@NonNull Request request) { try { return restClient.performRequest(request); } catch (ResponseException responseException) { return responseException.getResponse(); } catch (IOException e) { throw new InternalErrorException(CustomerMessage.INTERNAL_ERROR, e); } } }
ElasticsearchClient { public Response performRequest(@NonNull Request request) { try { return restClient.performRequest(request); } catch (ResponseException responseException) { return responseException.getResponse(); } catch (IOException e) { throw new InternalErrorException(CustomerMessage.INTERNAL_ERROR, e); } }  }
ElasticsearchClient { public Response performRequest(@NonNull Request request) { try { return restClient.performRequest(request); } catch (ResponseException responseException) { return responseException.getResponse(); } catch (IOException e) { throw new InternalErrorException(CustomerMessage.INTERNAL_ERROR, e); } }  Response performRequest(@NonNull Request request); Response performRequest(@NonNull Request request, @NonNull String endpoint); Response performRequest(@NonNull String method, @NonNull String endpoint); Response performRequest(@NonNull String method, @NonNull String endpoint, @NonNull String payload); Response performRequest(@NonNull String method, @NonNull String endpoint, @NonNull String payload,
                                   @NonNull Map<String, String> headerMap); }
ElasticsearchClient { public Response performRequest(@NonNull Request request) { try { return restClient.performRequest(request); } catch (ResponseException responseException) { return responseException.getResponse(); } catch (IOException e) { throw new InternalErrorException(CustomerMessage.INTERNAL_ERROR, e); } }  Response performRequest(@NonNull Request request); Response performRequest(@NonNull Request request, @NonNull String endpoint); Response performRequest(@NonNull String method, @NonNull String endpoint); Response performRequest(@NonNull String method, @NonNull String endpoint, @NonNull String payload); Response performRequest(@NonNull String method, @NonNull String endpoint, @NonNull String payload,
                                   @NonNull Map<String, String> headerMap);  }