TrustStoreUpgrade_2_0 extends DatabaseUpgradeSupport { @Override public void apply() throws Exception { upgradeService.importKeyStoreFiles(); } @Inject  TrustStoreUpgrade_2_0(final LegacyKeyStoreUpgradeService upgradeService); @Override void apply();  }
@Test public void testApply() throws Exception { new TrustStoreUpgrade_2_0(upgradeService).apply(); verify(upgradeService).importKeyStoreFiles(); }