@Before
public void setup() throws Exception {
stream = new ByteArrayOutputStream();
Environment environment = mock(Environment.class);
HttpServletResponse response = mock(HttpServletResponse.class);
when(response.getWriter()).thenReturn(new PrintWriter(stream));
DefaultTypeNameExtractor extractor = new DefaultTypeNameExtractor();
XStreamBuilder builder = XStreamBuilderImpl.cleanInstance(new MessageConverter());