VersionManagerImpl implements VersionManager { @Override public String getCurrentVersion() { return currentVersion; } @Inject  VersionManagerImpl(final ReleaseDao releaseDao, @Named("currentVersion") final String currentVersion); @Override String getCurrentVersion(); @Override ReleaseInfo getRemoteReleaseInfo(); @Override void updateRemoteReleaseInfo();  }
@Test public void testGetCurrentVersion() { ReleaseDao releaseDao = createMock(ReleaseDao.class); replay(releaseDao); VersionManagerImpl versionManager = new VersionManagerImpl(releaseDao, "0.6.3"); assertEquals("0.6.3", versionManager.getCurrentVersion()); verify(releaseDao); }