MetaProtocol { public static Schema getSchema() { return schema; } private  MetaProtocol(); static Schema getSchema(); static Collection<Class<?>> getMessageClasses();  }
@Test public void testSchema() { Schema schema = MetaProtocol.getSchema(); String schemaString = schema.toString(); System.out.println(schemaString); MetaSchema metaSchema = schema.toMessage(); Schema schema2 = metaSchema.toSchema(); String schemaString2 = schema2.toString(); System.out.println(schemaString2); assertEquals(schemaString, schemaString2); }