### Question:
ExpressionUtils { public static boolean isBinaryOperation(Tree tree, BinaryExpressionTree.Operator operator) { return tree instanceof BinaryExpressionTree && ((BinaryExpressionTree) tree).operator() == operator; } private  ExpressionUtils(); static boolean isBooleanLiteral(Tree tree); static boolean isFalseValueLiteral(Tree originalTree); static boolean isTrueValueLiteral(Tree originalTree); static boolean isNegation(Tree tree); static boolean isBinaryOperation(Tree tree, BinaryExpressionTree.Operator operator); static boolean isLogicalBinaryExpression(Tree tree); static Tree skipParentheses(Tree tree); static boolean containsPlaceHolder(Tree tree); static boolean isTernaryOperator(Deque<Tree> ancestors, Tree tree); static Optional<String> getMemberSelectOrIdentifierName(Tree tree);  }### Answer:
@Test public void test_binary_operation() { Tree binaryAnd = new BinaryExpressionTreeImpl(null, CONDITIONAL_AND, null, TRUE_LITERAL, FALSE_LITERAL); assertThat(isBinaryOperation(binaryAnd, CONDITIONAL_AND)).isTrue(); assertThat(isBinaryOperation(binaryAnd, CONDITIONAL_OR)).isFalse(); }