@Test
public void shouldParseMultipleStatementsWithDefaultDatabase() {

    parser.setCurrentSchema("mydb");
    String ddl = "CREATE TABLE foo ( " + System.lineSeparator()
            + " c1 INTEGER NOT NULL, " + System.lineSeparator()
            + " c2 VARCHAR(22) " + System.lineSeparator()
            + "); " + System.lineSeparator()
            + "-- This is a comment" + System.lineSeparator()
            + "DROP TABLE foo;" + System.lineSeparator();
    parser.parse(ddl, tables);
    assertThat(tables.size()).isEqualTo(0); // table created and dropped
    changes.groupEventsByDatabase((dbName, list) -> {
        assertThat(dbName).isEqualTo("mydb");
        assertThat(list.size()).isEqualTo(2);
        assertThat(list.get(0).type()).isEqualTo(EventType.CREATE_TABLE);
        assertThat(list.get(1).type()).isEqualTo(EventType.DROP_TABLE);
    });
}