GeneralSchema extends AbstractSchema { public List<EvaluationExpression> getMappings() { return this.mappings; } GeneralSchema(final EvaluationExpression... mappings);  GeneralSchema(final List<EvaluationExpression> mappings); List<EvaluationExpression> getMappings(); @Override IntSet indicesOf(final EvaluationExpression expression); @Override PactRecord jsonToRecord(final IJsonNode value, PactRecord target, final EvaluationContext context); @Override IJsonNode recordToJson(final PactRecord record, final IJsonNode target);  }
@Test public void shouldProvidePactSchemaWhenMappingsIsEmpty() { this.schema = new GeneralSchema(); Assert.assertTrue(this.schema.getMappings().size() == 0); final Class<? extends Value>[] pactSchema = this.schema.getPactSchema(); Assert.assertTrue(pactSchema.length == 1); }