@Test
public void testVisitMethodExpressionWithStartsWith() {

	Map<String, EntityField> entityFieldsMap =
		_entityModel.getEntityFieldsMap();
	EntityField entityField = entityFieldsMap.get("title");
	String value = "title1";
	PrefixFilter prefixFilter =
		(PrefixFilter)_expressionVisitorImpl.visitMethodExpression(
			Arrays.asList(Arrays.array(entityField, value)),
			MethodExpression.Type.STARTS_WITH);
	Assert.assertEquals(entityField.getName(), prefixFilter.getField());
	Assert.assertEquals(value, prefixFilter.getPrefix());
}