@Test
@SuppressWarnings("deprecation")
public void test_Deprecated_mapToQuery() {

    Map<String, Object> map = new LinkedHashMap<String, Object>();
    map.put("name", "Ichiro Suzuki");
    map.put("age", 10);
    map.put("list", Arrays.asList("xxx", "yyy"));
    assertThat(Functions.mapToQuery(map, null), is(
            "name=Ichiro%20Suzuki&age=10&list=xxx,yyy"));
    assertThat(Functions.mapToQuery(map, new BeanWrapperImpl(new Person())),
            is("name=Ichiro%20Suzuki&age=10&list=xxx,yyy"));
}