@Test
public void testSingleParameter() {

    ParameterExpressionType param1 = wfs20Factory.createParameterExpressionType();
    param1.setName("foo");
    desc.getParameter().add(param1);
    ParameterTypeFactory factory = new ParameterTypeFactory(config, desc, featureType);
    Map<String, String> viewParams = new HashMap<String, String>();
    viewParams.put("foo", "bar");
    List<ParameterType> params = factory.buildStoredQueryParameters(viewParams, null);
    assertEquals(1, params.size());
    ParameterType tmp = params.get(0);
    assertEquals("foo", tmp.getName());
    assertEquals("bar", tmp.getValue());
}