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