JType previouslyGeneratedType = mock(JType.class);
URI schemaUri = getClass().getResource("/schema/address.json").toURI();
SchemaStore schemaStore = new SchemaStore();
Schema schema = schemaStore.create(schemaUri);
schema.setJavaType(previouslyGeneratedType);
when(mockRuleFactory.getSchemaStore()).thenReturn(schemaStore);
ObjectNode schemaNode = new ObjectMapper().createObjectNode();