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