### Question:
CassandraSplit implements ConnectorSplit { public String getWhereClause() { if (partitionId.equals(CassandraPartition.UNPARTITIONED_ID)) { if (splitCondition != null) { return " WHERE " + splitCondition; } else { return ""; } } else { if (splitCondition != null) { return " WHERE " + partitionId + " AND " + splitCondition; } else { return " WHERE " + partitionId; } } } @JsonCreator  CassandraSplit(
            @JsonProperty("partitionId") String partitionId,
            @JsonProperty("splitCondition") String splitCondition,
            @JsonProperty("addresses") List<HostAddress> addresses); @JsonProperty String getSplitCondition(); @JsonProperty String getPartitionId(); @JsonProperty @Override List<HostAddress> getAddresses(); @Override boolean isRemotelyAccessible(); @Override Object getInfo(); @Override String toString(); String getWhereClause();  }### Answer:
@Test public void testWhereClause() { CassandraSplit split; split = new CassandraSplit( CassandraPartition.UNPARTITIONED_ID, "token(k) >= 0 AND token(k) <= 2", addresses); assertEquals(split.getWhereClause(), " WHERE token(k) >= 0 AND token(k) <= 2"); split = new CassandraSplit( "key = 123", null, addresses); assertEquals(split.getWhereClause(), " WHERE key = 123"); }