### Question:
ClientNot extends ClientOperator<ClientNot> { public static ClientNot not(ClientExpression expression) { if (expression == null) { throw new IllegalArgumentException("Error creating 'not' filter expression. Expression is null!"); } if (!(expression instanceof ClientOperator)) { throw new IllegalArgumentException("Error creating 'not' filter expression. Expression is not operator!"); } return new ClientNot(expression); } ClientNot();  ClientNot(ClientNot source);  ClientNot(ClientExpression expression, Boolean paren);  ClientNot(ClientOperation operation, List<ClientExpression> operands);  ClientNot(ClientExpression expression); @Override ClientNot addOperand(ClientExpression operand); static ClientNot not(ClientExpression expression); @XmlTransient ClientExpression getOperand(); @Override @Size(min = 1, max = 1, message = DOMEL_INCORRECT_OPERANDS_COUNT) List<ClientExpression> getOperands(); @Override String toString(); @Override void accept(ClientELVisitor visitor); ClientNot setParen(Boolean paren); @Override ClientNot setParen(); @Override ClientNot unsetParen(); @Override ClientNot deepClone(); @Override int getPrecedence(); static final String EXPRESSION_ID; }### Answer:
@Test public void or_nullExpression_throws() { assertThrows( IllegalArgumentException.class, new Executable() { @Override public void execute() throws Exception { not(null); } } ); }
@Test public void or_notOperator_throws() { assertThrows( IllegalArgumentException.class, new Executable() { @Override public void execute() throws Exception { not(new ClientNumber()); } } ); }