@Test
public void testSerialize() throws JsonProcessingException {

  String jsonString = "{\"method\":\"method\",\"params\":[],\"id\":\"id\"}";
  JsonRpcV1Request request = new JsonRpcV1Request("id", "method");
  assertEquals(
      jsonString, JsonUtil.serialize(request)
  );
  class WrongClass {
    private String field;
  }
  assertNull(JsonUtil.serializeNoException(new WrongClass()));
}