UpgradeCatalog230 extends AbstractUpgradeCatalog { @Override public String getSourceVersion() { return "2.2.1"; } @Inject  UpgradeCatalog230(Injector injector); @Override String getSourceVersion(); @Override String getTargetVersion();  }
@Test public void testGetSourceVersion() { UpgradeCatalog upgradeCatalog = injector.getInstance(UpgradeCatalog230.class); Assert.assertEquals("2.2.1", upgradeCatalog.getSourceVersion()); }