@Test
public void shouldProcessEmptyParams() throws Exception {

    Serializer serializer = new ToStringSerializer();
    ParamConfig paramConfig = mock(ParamConfig.class);
    when(paramConfig.getSerializer()).thenReturn(serializer);
    when(paramConfig.isEncoded()).thenReturn(true);
    when(paramConfig.getName()).thenReturn("p1");
    Param param = mock(Param.class);
    when(param.getParamConfig()).thenReturn(paramConfig);
    when(param.getValue()).thenReturn(Collections.<Object>emptyList());
    List<EncodedPair> actual = toTest.process(param, UTF8, true);
    assertEquals(0, actual.size());
}