@Test
public void testEncodeNullValue() throws Exception {

  RequestParamsExtractor<Integer> extractor =
      getMockExtractor(1, Collections.singletonMap("param1", (String) null));
  RequestUrlParamsEncoder<Integer> encoder = new RequestUrlParamsEncoder<>(extractor, false);
  String encodedParams = encoder.encode(1);
  assertEquals("", encodedParams);
}