@Test
public void setParamsSerializerShouldSetSerializerOnAllParamConfigs() throws Exception {

    MethodConfigBuilder toTest = newToTest();
    assertSame(toTest, toTest.setParamsSerializer(TestSerializer.class));
    verify(mockParamConfigBuilder1).setSerializer(TestSerializer.class);
    verify(mockParamConfigBuilder2).setSerializer(TestSerializer.class);
}