DatabaseMigrationState { public ChangeSet getVersion() { return version; } DatabaseMigrationState(final Boolean schemaChanged,
                                  final ChangeSet version);  DatabaseMigrationState(); boolean isSchemaChanged(); ChangeSet getVersion();  }
@Test public void getVersion() { ChangeSet change = Mockito.mock(ChangeSet.class); DatabaseMigrationState state1 = new DatabaseMigrationState(); assertNull(state1.getVersion()); DatabaseMigrationState state2 = new DatabaseMigrationState(true, change); assertSame(state2.getVersion(), change); }