@Test(expected = IllegalStateException.class)
public void serializeMultiNameDuplication() throws Exception {

    Gson gson = new Gson();
    JsonSerializer serializer = new JsonSerializer(gson);
    Invokable<?, Object> method = Invokable.from(
            Methods.class.getMethod("multiNameDuplication", String.class, Pojo.class));
    Parameter[] parameters = Iterables.toArray(method.getParameters(), Parameter.class);
    Pojo pojo = new Pojo("Hello world!", 42);
    serializer.serialize(parameters, new Object[] { "bad", pojo });
}