SchemaRegistryMultiple implements SchemaRegistry, Serializable { @Override public int size() { return table.size(); } private  SchemaRegistryMultiple();  SchemaRegistryMultiple(List<String> schemaKeys);  SchemaRegistryMultiple(List<String> schemaKeys, Comparator<Schema> schemaComparator); @Override SchemaResult getSchemaResult(SchemaQuery schemaQuery); @Override void registerSchema(Schema schema); @Override Schema getSchema(Map<String, String> schemaKeys); @Override void registerSchema(Schema schema, Map<String, String> schemaKeys); @Override int size();  }
@Test public void serializationTest() throws Exception { SchemaRegistryMultiple schemaRegistryMultiple = createSchemaRegistry(); schemaRegistryMultiple = KryoCloneUtils.cloneObject(schemaRegistryMultiple); Assert.assertEquals(2, schemaRegistryMultiple.size()); }