@Test
public void shouldProcessParamIgnoringEncodingFlag() throws Exception {

    Serializer serializer = new ToStringSerializer();
    ParamConfig paramConfig = mock(ParamConfig.class);
    when(paramConfig.getSerializer()).thenReturn(serializer);
    when(paramConfig.isEncoded()).thenReturn(false);
    when(paramConfig.getName()).thenReturn("p1");
    Param param = mock(Param.class);
    when(param.getParamConfig()).thenReturn(paramConfig);
    when(param.getValue()).thenReturn((Collection) asList("v 11", "v 12"));
    List<EncodedPair> actual = toTest.process(param, UTF8, false);
    assertEquals(1, actual.size());
    assertEquals("Cookie", actual.get(0).getName());
    assertEquals("p1=v 11,p1=v 12", actual.get(0).getValue());
}