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