public void resolvesQuery() throws Exception
{
ParamValueResolver paramValueResolver = mock(ParamValueResolver.class);
QueryResolver queryResolver = new ParametrizedQueryResolver(resolvedTemplateQuery, paramValueResolver);
List<QueryParamValue> resolvedParams = Collections.singletonList(new QueryParamValue("param1", "foo"));
when(paramValueResolver.resolveParams(muleEvent, resolvedTemplateQuery.getParamValues())).thenReturn(resolvedParams);
Query resolvedQuery = queryResolver.resolve(null, muleEvent);
assertThat(resolvedTemplateQuery, not(sameInstance(resolvedQuery)));