@Test
public void testCustomSerialization_requestBody() throws Exception {

  Class<?> clazz = SerializerTestEndpoint.class;
  String apiConfigSource = g.generateConfig(clazz).get("myapi-v1.api");
  ObjectNode root = objectMapper.readValue(apiConfigSource, ObjectNode.class);
  verifyMethodRequestRef(
      root, clazz.getName() + ".testMethodRequestBody", "SerializerTestConvertedToBean");
}