### Question:
RequestIdentifier { public static boolean isBulkRequest(@NonNull Request esRequest) { return Constants.BULK_REQUEST.equals(esRequest.getEndpoint()); }  static boolean isConfigRequest(@NonNull Request esRequest); static boolean isConfigUpdateRequest(@NonNull Request esRequest); static boolean isMutationRequest(@NonNull Request esRequest); static boolean isIndexRequest(@NonNull Request esRequest); static boolean isBulkRequest(@NonNull Request esRequest); static String getIndexName(@NonNull Request esRequest); static Optional<String> getBulkIndexName(@NonNull String payloadLine);  }### Answer:
@Test public void succeedIsBulkRequestWithCorrectBulkPattern() { esRequest = new Request(TestConstants.POST_METHOD, Constants.BULK_REQUEST); boolean result = RequestIdentifier.isBulkRequest(esRequest); assertTrue(result); }
@Test public void failedIsBulkRequestWithWrongPattern() { esRequest = new Request(TestConstants.PUT_METHOD, TestConstants.CORRECT_INDEX_PATH); boolean result = RequestIdentifier.isBulkRequest(esRequest); assertFalse(result); }