UpgradeCatalog212 extends AbstractUpgradeCatalog { @Override public String getTargetVersion() { return "2.1.2"; } @Inject  UpgradeCatalog212(Injector injector); protected  UpgradeCatalog212(); @Override String getTargetVersion(); @Override String getSourceVersion();  }
@Test public void testGetTargetVersion() throws Exception { final DBAccessor dbAccessor = createNiceMock(DBAccessor.class); UpgradeCatalog upgradeCatalog = getUpgradeCatalog(dbAccessor); Assert.assertEquals("2.1.2", upgradeCatalog.getTargetVersion()); }