### Question:
RequestIdentifier { public static boolean isConfigRequest(@NonNull Request esRequest) { return Constants.CONFIG_PATH_EXPOSED_TO_CUSTOMER.equalsIgnoreCase(esRequest.getEndpoint()) || isConfigUpdateRequest(esRequest); }  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 succeedIsConfigRequestWithConfigPath() { esRequest = new Request(TestConstants.PUT_METHOD, Constants.CONFIG_PATH_EXPOSED_TO_CUSTOMER); boolean result = RequestIdentifier.isConfigRequest(esRequest); assertTrue(result); }
@Test public void succeedIsConfigRequestWithConfigUpdatePath() { esRequest = new Request(TestConstants.POST_METHOD, String.format("%s/%s", Constants.CONFIG_PATH_EXPOSED_TO_CUSTOMER, Constants.UPDATE_REQUEST)); boolean result = RequestIdentifier.isConfigRequest(esRequest); assertTrue(result); }
@Test public void failedIsConfigRequestWithWrongPath() { esRequest = new Request(TestConstants.PUT_METHOD, TestConstants.WRONG_PATH); boolean result = RequestIdentifier.isConfigRequest(esRequest); assertFalse(result); }