### Question:
SourceTable { public void setDatabaseName(String databaseName) { this.databaseName = databaseName; }  String getDatabaseName(); void setDatabaseName(String databaseName); String getTableName(); void setTableName(String tableName); String getTableLocation(); void setTableLocation(String tableLocation); String getPartitionFilter(); void setPartitionFilter(String partitionFilter); Short getPartitionLimit(); void setPartitionLimit(Short partitionLimit); String getQualifiedName(); boolean isGeneratePartitionFilter(); void setGeneratePartitionFilter(boolean generatePartitionFilter);  }### Answer:
@Test public void nullDatabaseName() { sourceTable.setDatabaseName(null); Set<ConstraintViolation<SourceTable>> violations = validator.validate(sourceTable); assertThat(violations.size(), is(1)); }
@Test public void emptyDatabaseName() { sourceTable.setDatabaseName(""); Set<ConstraintViolation<SourceTable>> violations = validator.validate(sourceTable); assertThat(violations.size(), is(1)); }
@Test public void blankDatabaseName() { sourceTable.setDatabaseName(" "); Set<ConstraintViolation<SourceTable>> violations = validator.validate(sourceTable); assertThat(violations.size(), is(1)); }