### Question:
DatabaseUpgrader { public void migrate () { this.flyway.migrate(); this.flyway.validate(); } DatabaseUpgrader(MySQLConfig mySQLConfig); void migrate(); String getInfo();  }### Answer:
@Test public void testMigrate () throws IOException { MySQLConfig mySQLConfig = createConfig(); DatabaseUpgrader databaseUpgrader = new DatabaseUpgrader(mySQLConfig); databaseUpgrader.migrate(); }