@Test
public void testVisitBinaryExpressionOperationWithAndOperation() {

	TermFilter leftTermFilter = new TermFilter("title", "title1");
	TermFilter rightTermFilter = new TermFilter("title", "title2");
	BooleanFilter booleanFilter =
		(BooleanFilter)
			_expressionVisitorImpl.visitBinaryExpressionOperation(
				BinaryExpression.Operation.AND, leftTermFilter,
				rightTermFilter);
	Assert.assertTrue(booleanFilter.hasClauses());
	List<BooleanClause<Filter>> booleanClauses =
		booleanFilter.getMustBooleanClauses();
	Assert.assertEquals(
		booleanClauses.toString(), 2, booleanClauses.size());
	BooleanClause<Filter> queryBooleanClause1 = booleanClauses.get(0);
	Assert.assertEquals(leftTermFilter, queryBooleanClause1.getClause());
	Assert.assertEquals(
		BooleanClauseOccur.MUST,
		queryBooleanClause1.getBooleanClauseOccur());
	BooleanClause<Filter> queryBooleanClause2 = booleanClauses.get(1);
	Assert.assertEquals(rightTermFilter, queryBooleanClause2.getClause());
	Assert.assertEquals(
		BooleanClauseOccur.MUST,
		queryBooleanClause2.getBooleanClauseOccur());
}