@Test
public void testEpsg() throws Exception {
MockHttpServletRequest request = new MockHttpServletRequest();
request.setRequestURI("/rest/beans");
request.setMethod("GET");
MockHttpServletResponse response = new MockHttpServletResponse();
// check attribute equality
request.setParameter("queryable", "stringAttr");
request.setParameter("stringAttr_eq", "bean1");
request.setParameter("epsg", "900913");
ModelAndView mav = adapter.handle(request, response, restController);
view.render(mav.getModel(), request, response);
response.flushBuffer();
Object json = new JSONParser().parse(response.getContentAsString());
Assert.assertTrue(json instanceof JSONObject);
JSONObject jsonObject = (JSONObject) json;
JSONArray features = (JSONArray) jsonObject.get("features");
JSONObject feature = (JSONObject) features.get(0);
JSONObject geometry = (JSONObject) feature.get("geometry");