### Question:
TyperUtils { @Deprecated public static GenericTableSchema getTableSchema(final DatabaseSchema dbSchema, final Class<?> klazz) { return getTyped(dbSchema).getTableSchema(klazz); } private  TyperUtils(); @Deprecated static GenericTableSchema getTableSchema(final DatabaseSchema dbSchema, final Class<?> klazz); @Deprecated static T getTypedRowWrapper(final DatabaseSchema dbSchema,
            final Class<T> klazz); @Deprecated static T getTypedRowWrapper(final DatabaseSchema dbSchema,
            final Class<T> klazz, final Row<GenericTableSchema> row); static Map<UUID,T> extractRowsUpdated(final Class<T> klazz,
            final TableUpdates updates, final DatabaseSchema dbSchema); static Map<UUID, T> extractRowsOld(final Class<T> klazz,
            final TableUpdates updates, final DatabaseSchema dbSchema); static Map<UUID,T> extractRowsRemoved(final Class<T> klazz,
            final TableUpdates updates, final DatabaseSchema dbSchema);  }### Answer:
@Test public void testGetTableSchemaWithIncludedTypedTable() { GenericTableSchema testTableSchema = new GenericTableSchema("TestTypedTable"); DatabaseSchema dbSchema = new DatabaseSchemaImpl("testDb", Version.NULL, ImmutableMap.of(testTableSchema.getName(), testTableSchema)); GenericTableSchema tableSchema = TyperUtils.getTableSchema(dbSchema, TestTypedTable.class); assertEquals(testTableSchema, tableSchema); }
@Test public void testGetTableSchemaWithIncludedUntypedTable() { GenericTableSchema testTableSchema = new GenericTableSchema("TestUntypedTable"); DatabaseSchema dbSchema = new DatabaseSchemaImpl("testDb", Version.NULL, ImmutableMap.of(testTableSchema.getName(), testTableSchema)); GenericTableSchema tableSchema = TyperUtils.getTableSchema(dbSchema, TestUntypedTable.class); assertEquals(testTableSchema, tableSchema); }
@Test(expected = IllegalArgumentException.class) public void testGetTableSchemaWithoutIncludedTypedTable() { DatabaseSchema dbSchema = new DatabaseSchemaImpl("testDb", Version.NULL, Collections.emptyMap()); TyperUtils.getTableSchema(dbSchema, TestTypedTable.class); }
@Test(expected = IllegalArgumentException.class) public void testGetTableSchemaWithoutIncludedUntypedTable() { DatabaseSchema dbSchema = new DatabaseSchemaImpl("testDb", Version.NULL, Collections.emptyMap()); TyperUtils.getTableSchema(dbSchema, TestUntypedTable.class); }