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