### Question:
CassandraSchemaDao extends AbstractCassandraDao implements CassandraDao, SchemaDao { @Override public VersionUpdate getCurrentVersion() { cassandraService.errorIfNoTable(TABLE.get()); Select query = select(VERSION, DATE).from(TABLE.get()) .where(eq(ID, SINGLE_ROW_ID)) .limit(ONE_RESULT) .orderBy(desc(VERSION)); logger.debug("perform getCurrentVersion request {}", query.getQueryString()); ResultSet resultSet = getSession().execute(query); if (resultSet.isExhausted()) { throw new NoVersionException(); } VersionUpdate schemaUpdate = rowToSchemaUpdate(resultSet.one()); logger.debug("Current version found {}", schemaUpdate); return schemaUpdate; } @Inject @VisibleForTesting  CassandraSchemaDao(Provider<Session> sessionProvider, JSONService jsonService, 
			@Named(LoggerModule.CASSANDRA)Logger logger,
			CassandraService cassandraService,
			DateProvider dateProvider); @Override VersionUpdate getCurrentVersion(); @Override List<VersionUpdate> getHistory(); @Override void updateVersion(Version target);  }### Answer:
@Test(expected=NoVersionException.class) public void getCurrentVersionWhenNone() { schemaDao.getCurrentVersion(); }