@Test
public void shouldConstructBetweenCriteriaQuery() {

	Condition condition = new Condition("key", Operator.between, new String[]{"value", "value2"});
	when(builder.parameter(path.getJavaType(), "fromkey")).thenReturn(expression);
	when(builder.parameter(path.getJavaType(), "tokey")).thenReturn(expression);
	when(root.get("key")).thenReturn(path);
	condition.constructQuery(builder, root);
	verify(builder).between(path, expression, expression);
}