@Test(expected = IllegalArgumentException.class)
public void testEncodeNullName() throws Exception {

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