servlet = new DataServiceServlet();
req = EasyMock.createMock(HttpServletRequest.class);
res = EasyMock.createMock(HttpServletResponse.class);
jsonConverter = EasyMock.createMock(BeanJsonConverter.class);
BeanXStreamConverter xmlConverter = EasyMock.createMock(BeanXStreamConverter.class);
BeanXStreamAtomConverter atomConverter = EasyMock.createMock(BeanXStreamAtomConverter.class);
peopleHandler = EasyMock.createMock(PersonHandler.class);
activityHandler = EasyMock.createMock(ActivityHandler.class);
appDataHandler = EasyMock.createMock(AppDataHandler.class);
EasyMock.expect(jsonConverter.getContentType()).andReturn("application/json");
EasyMock.expect(xmlConverter.getContentType()).andReturn("application/xml");
EasyMock.expect(atomConverter.getContentType()).andReturn("application/atom+xml");
HandlerDispatcher dispatcher = new StandardHandlerDispatcher(constant(peopleHandler),
constant(activityHandler), constant(appDataHandler));
servlet.setHandlerDispatcher(dispatcher);