@Test
public void testSerializedPropertyInResourceSchema() throws Exception {

  class BazToDateSerializer extends DefaultValueSerializer<Baz, Date> {
  }
  @Api(transformers = {BazToDateSerializer.class, BarResourceSerializer.class})
  class BarEndpoint {
    @SuppressWarnings("unused")
    public Bar getBar() {
      return null;
    }
  }
  String apiConfigSource = g.generateConfig(BarEndpoint.class).get("myapi-v1.api");
  ObjectNode root = objectMapper.readValue(apiConfigSource, ObjectNode.class);
  JsonNode bar = root.path("descriptor").path("schemas").path("Bar");
  verifyObjectPropertySchema(bar, "someBaz", "string", "date-time");
}