}
private void testGeneration(SchemasetCustom custom, SchemaElement[] schemas, StringObjectPair[] image,
StringPair[] bindings) throws Exception {
CodeGen generator = new CodeGen(custom, m_validationContext);
ProblemHandler handler = new ProblemConsoleLister();
assertTrue("Schema customization failure", generator.customizeSchemas("dflt", handler));
generator.applyAndNormalize();
generator.pruneDefinitions();
ValidationUtils.validateSchemas(schemas, m_validationContext);
assertFalse("Errors in schema validation", m_validationContext.reportProblems(handler));