public void testPostPerson() throws Exception {
MockHttpServletRequest request =
MockRequestConstructor.constructMockRequest("POST", "/test/person", "application/x-protobuf");
request.setContentType("application/x-protobuf");
Person p = createPerson();
request.setContent(p.toByteArray());
MockHttpServletResponse response = invoke(request);
assertEquals(200, response.getStatus());
byte[] data = response.getContentAsByteArray();
Person p1 = Person.parseFrom(data);
assertEquals(p1);