### Question:
Not implements Clause, NeedsFutureClause { @Override public void appendSql(DatabaseType databaseType, String tableName, StringBuilder sb, List<ArgumentHolder> selectArgList) throws SQLException { if (comparison == null && exists == null) { throw new IllegalStateException("Clause has not been set in NOT operation"); } if (comparison == null) { sb.append("(NOT "); exists.appendSql(databaseType, tableName, sb, selectArgList); } else { sb.append("(NOT "); if (tableName != null) { databaseType.appendEscapedEntityName(sb, tableName); sb.append('.'); } databaseType.appendEscapedEntityName(sb, comparison.getColumnName()); sb.append(' '); comparison.appendOperation(sb); comparison.appendValue(databaseType, sb, selectArgList); } sb.append(") "); } Not();  Not(Clause clause); @Override void setMissingClause(Clause clause); @Override void appendSql(DatabaseType databaseType, String tableName, StringBuilder sb,
			List<ArgumentHolder> selectArgList); @Override String toString();  }### Answer:
@Test(expected = IllegalStateException.class) public void testNoClause() throws Exception { Not not = new Not(); not.appendSql(databaseType, null, new StringBuilder(), new ArrayList<ArgumentHolder>()); }