throws Exception {
// parse in the schema group, then serialize it to a buffer, then
// recreate it and test againt that to make sure it's the same as the
// original
SchemaGroup group = parseSchemaGroup();
SchemaSerializer ser = new XMLSchemaSerializer(this.conf);
ser.addAll(group);
ByteArrayOutputStream out = new ByteArrayOutputStream();
ser.serialize(new OutputStreamWriter(out), ser.PRETTY);
byte[] bytes = out.toByteArray();
SchemaParser parser = new XMLSchemaParser(this.conf);
parser.parse(new InputStreamReader
(new ByteArrayInputStream(bytes)), "bytes");