MigraMongo { public List<MigrationEntry> getMigrationEntries() { return toList(migrationHistoryService.getAllMigrationsApplied()); } MigraMongo(
            MongoDatabase database,
            MigrationHistoryService migrationEntryService,
            LockService lockService,
            ScriptLookupService scriptLookupService); void setAsyncInitializerFunction(Runnable function); MigraMongoStatus dryRun(); MigraMongoStatus migrate(); MigraMongoStatus migrateAsync(); MigraMongoStatus status(String fromVersion); MigraMongoStatus repair(String fromVersion, String toVersion); MigraMongoStatus rerun(String fromVersion, String toVersion); List<MigrationEntry> getMigrationEntries(); void destroyLocks();  }
@Test public void shouldReturnAppliedEntries() throws Exception { when(migEntryService.getAllMigrationsApplied()) .thenReturn( Arrays .asList( createMigrationEntry("1.0", "2.0", MigrationStatus.OK), createMigrationEntry("2.0", "3.0", MigrationStatus.OK))); final List<MigrationEntry> migrationEntries = migraMongo.getMigrationEntries(); assertThat(migrationEntries, hasSize(2)); }