### Question:
UpgradeCatalog211 extends AbstractUpgradeCatalog { @Override public String getSourceVersion() { return "2.1.0"; } @Inject  UpgradeCatalog211(Injector injector); @Override String getTargetVersion(); @Override String getSourceVersion();  }### Answer:
@Test public void testGetSourceVersion() { final DBAccessor dbAccessor = createNiceMock(DBAccessor.class); final OsFamily osFamily = createNiceMock(OsFamily.class); Provider<EntityManager> entityManagerProvider = initEntityManagerProvider(); replayAll(); UpgradeCatalog upgradeCatalog = getUpgradeCatalog(dbAccessor, osFamily, entityManagerProvider.get()); Assert.assertEquals("2.1.0", upgradeCatalog.getSourceVersion()); verifyAll(); }