@Test
public void serializeEmpty() throws Exception {

    Gson gson = new Gson();
    JsonSerializer serializer = new JsonSerializer(gson);
    Invokable<?, Object> method = Invokable.from(Methods.class.getMethod("empty"));
    Parameter[] parameters = Iterables.toArray(method.getParameters(), Parameter.class);
    byte[] bytes = serializer.serialize(parameters, new Object[] { });
    Assert.assertArrayEquals("[]".getBytes(Charsets.UTF_8), bytes);
}