### Question:
UpgradeCatalog210 extends AbstractUpgradeCatalog { @Override public String getTargetVersion() { return "2.1.0"; } @Inject  UpgradeCatalog210(Injector injector); @Override String getSourceVersion(); @Override String getTargetVersion();  }### Answer:
@Test public void testGetTargetVersion() throws Exception { final DBAccessor dbAccessor = createNiceMock(DBAccessor.class); UpgradeCatalog upgradeCatalog = getUpgradeCatalog(dbAccessor); Assert.assertEquals("2.1.0", upgradeCatalog.getTargetVersion()); }