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