@Test
public void testQuery() {
String sql = "bar > 1000";
when(map.values(any(SqlPredicate.class))).thenReturn(Arrays.<Object>asList(new Dummy("beta", 2000), new Dummy("gamma", 3000)));
template.sendBodyAndHeader("direct:query", null, HazelcastConstants.QUERY, sql);
verify(map).values(any(SqlPredicate.class));
Collection<?> b1 = consumer.receiveBody("seda:out", 5000, Collection.class);