support empty query parameters
add test for spring mock