MockHttpServletResponse response = new MockHttpServletResponse();
ModelAndView mav = adapter.handle(request, response, restController);
Object o = mav.getModel().get(RestController.FEATURE_COLLECTION);
Assert.assertTrue(o instanceof InternalFeature);
InternalFeature feature = (InternalFeature) o;
Assert.assertEquals("bean1", feature.getAttributes().get("stringAttr").getValue());
Assert.assertEquals(true, feature.getAttributes().get("booleanAttr").getValue());
Assert.assertEquals("100,23", feature.getAttributes().get("currencyAttr").getValue());
Calendar c = Calendar.getInstance();
c.set(2010, 1, 23, 0, 0, 0);
c.set(Calendar.MILLISECOND, 0);
Assert.assertEquals(c.getTime(), feature.getAttributes().get("dateAttr").getValue());
Assert.assertEquals(123.456, feature.getAttributes().get("doubleAttr").getValue());
Assert.assertEquals(456.789F, feature.getAttributes().get("floatAttr").getValue());
Assert.assertEquals("http://www.geomajas.org/image1",
fixSlash(feature.getAttributes().get("imageUrlAttr").getValue().toString()));
Assert.assertEquals(789, feature.getAttributes().get("integerAttr").getValue());
Assert.assertEquals(123456789L, feature.getAttributes().get("longAttr").getValue());
Assert.assertEquals((short) 123, feature.getAttributes().get("shortAttr").getValue());
Assert.assertEquals("http://www.geomajas.org/url1",
fixSlash(feature.getAttributes().get("urlAttr").getValue().toString()));
view.render(mav.getModel(), request, response);
response.flushBuffer();
Object json = new JSONParser().parse(response.getContentAsString());
String isodate = GeoJSONUtil.DATE_FORMAT.format(c.getTime());