public static class TestRuleFactory extends RuleFactory {
@Override
public Rule<JType, JType> getFormatRule() {
return new FormatRule(this) {
@Override
public JType apply(String nodeName, JsonNode node, JType baseType, Schema schema) {
if (node.asText().equals("date")) {
return baseType.owner().ref(LocalDate.class);
}