Test generation of JSON and XML using Jersey