### Question:
ImmutableSchema extends AbstractSchema implements
		Serializable { @Override public String getName() { return name; } private  ImmutableSchema(String name, String quote);  ImmutableSchema(Schema schema); @Override List<Table> getTables(); @Override String getName(); @Override String getQuote();  }### Answer:
@Test public void testDeserializeOldFormat() throws Exception { final File file = new File("src/test/resources/metamodel-4.6.0-immutableschema-etc.ser"); assertTrue(file.exists()); try (final FileInputStream in = new FileInputStream(file)) { final LegacyDeserializationObjectInputStream ois = new LegacyDeserializationObjectInputStream(in); final Object obj = ois.readObject(); assertTrue(obj instanceof ImmutableSchema); ois.close(); final ImmutableSchema sch = (ImmutableSchema) obj; assertEquals("schema", sch.getName()); assertEquals(2, sch.getTableCount()); final Table table1 = sch.getTable(0); assertTrue(table1 instanceof ImmutableTable); assertEquals("t1", table1.getName()); assertEquals(Arrays.asList("t1_c1", "t1_c2"), table1.getColumnNames()); assertEquals(1, table1.getRelationshipCount()); final Table table2 = sch.getTable(1); assertTrue(table2 instanceof ImmutableTable); assertEquals("t2", table2.getName()); assertEquals(Arrays.asList("t2_c1"), table2.getColumnNames()); assertEquals(1, table2.getRelationshipCount()); final Relationship rel1 = table1.getRelationships().iterator().next(); final Relationship rel2 = table2.getRelationships().iterator().next(); assertSame(rel1, rel2); assertTrue(rel1 instanceof ImmutableRelationship); } }