CassandraMigrationService { public Optional<SchemaVersion> getLatestVersion() { return Optional.of(latestVersion); } @Inject  CassandraMigrationService(CassandraSchemaVersionDAO schemaVersionDAO, CassandraSchemaTransitions transitions,
                                     MigrationTask.Factory factory, @Named(LATEST_VERSION) SchemaVersion latestVersion); Optional<SchemaVersion> getCurrentVersion(); Optional<SchemaVersion> getLatestVersion(); Task upgradeToVersion(SchemaVersion target); Task upgradeToLastVersion(); static final String LATEST_VERSION; }
@Test void getLatestVersionShouldReturnTheLatestVersion() { assertThat(testee.getLatestVersion()).contains(LATEST_VERSION); }