@Test
public void shouldSerializeToStringUsingStringSerializerSpecificMethodIfSerializerIsOfSpecificInstance() throws Exception {

    StringSerializer serializer = mock(StringSerializer.class);
    when(serializer.serialize("arg", UTF8)).thenReturn("serialized");
    String actual = Serializers.serialize(serializer, "arg", UTF8);
    assertEquals("serialized", actual);
}