public static Map<String, String> parseParams(HttpRequest request) {
    if (request instanceof HttpGet) {
      return parseParamsForGet(request);
    }
    if (request instanceof HttpEntityEnclosingRequestBase) {
      return parseParamsForRequestWithEntity((HttpEntityEnclosingRequestBase) request);
    }
    return new LinkedHashMap<>();
  }
@Test
  public void parseParams_returnsNullForUnsupportedOperations() throws Exception {
    HttpDelete httpDelete = new HttpDelete("http://example.com/deleteme");
    assertThat(ParamsParser.parseParams(httpDelete)).isEmpty();
  }