### Question:
Migratron { public void updateMigration(Migration update) { updateMigration = update; }  void addMigration(int versionCode,Migration migration); void migrate(); void updateMigration(Migration update); static final String LAST_MIGRATION_VERSION; static final String LAST_APP_VERSION; }### Answer:
@Test public void testUpdateMigration() { Migration update = mock(Migration.class); migratron.updateMigration(update); migratron.migrate(); verify(update,times(1)).migrate(eq(Robolectric.application)); }