### Question:
Analyzer { public Database analyze() throws SQLException { statement = connection.createStatement(); Database database = new Database(); readTableAndViewNames(database); for (Table name : database.getTables()) { readTableInfo(name); } addTableDependencies(database); statement.close(); return database; } Analyzer(Connection connection); Database analyze();  }### Answer:
@Test public void shouldAnalyzeDbFromSampleMigrations() throws Exception { Database database = analyzer.analyze(); assertTableNames(database, "people", "numbers"); assertTableColumns(database, "people", new String[]{"name", "age", "firstname"}); }