</BUG>
createMetaDataTable(createAppliedBaselineMigration(2)),
MigrationVersion.LATEST, false, true, true);
migrationInfoService.refresh();
assertEquals("2", migrationInfoService.current().getVersion().toString());
<BUG>final MigrationInfo[] all = migrationInfoService.all();
assertEquals(2, all.length);
assertEquals(MigrationState.BASELINE, all[0].getState());
assertEquals(MigrationState.BELOW_BASELINE, all[1].getState());

assertEquals(0, migrationInfoService.pending().length);</BUG>
}

}
@Test
public void allApplied() {
MigrationInfoServiceImpl migrationInfoService =
new MigrationInfoServiceImpl(
createMigrationResolver(createResolvedMigration(1), createResolvedMigration(2)),
createMetaDataTable(createAppliedMigration(1), createAppliedMigration(2)),
MigrationVersion.LATEST, false, true, true);
migrationInfoService.refresh();
assertEquals("2", migrationInfoService.current().getVersion().toString());
assertEquals(2, migrationInfoService.all().length);
assertEquals(0, migrationInfoService.pending().length);
}
