### Question:
ShuntingYardTableReplication { public void setSourceTable(SourceTable sourceTable) { this.sourceTable = sourceTable; }  SourceTable getSourceTable(); void setSourceTable(SourceTable sourceTable); ReplicaTable getReplicaTable(); void setReplicaTable(ReplicaTable replicaTable); String getReplicaDatabaseName(); String getReplicaTableName();  }### Answer:
@Test public void nullSourceTable() throws Exception { replicaTable.setDatabaseName("replica-database"); replicaTable.setTableName("replica-table"); tableReplication.setSourceTable(null); Set<ConstraintViolation<ShuntingYardTableReplication>> violations = validator.validate(tableReplication); assertThat(violations.size(), is(1)); }