UpgradeCatalog211 extends AbstractUpgradeCatalog { @Override public String getTargetVersion() { return "2.1.1"; } @Inject  UpgradeCatalog211(Injector injector); @Override String getTargetVersion(); @Override String getSourceVersion();  }
@Test public void testGetTargetVersion() throws Exception { final DBAccessor dbAccessor = createNiceMock(DBAccessor.class); final OsFamily osFamily = createNiceMock(OsFamily.class); Provider<EntityManager> entityManagerProvider = initEntityManagerProvider(); replayAll(); UpgradeCatalog upgradeCatalog = getUpgradeCatalog(dbAccessor, osFamily, entityManagerProvider.get()); Assert.assertEquals("2.1.1", upgradeCatalog.getTargetVersion()); verifyAll(); }