this.stream = new StringWriter();
response = mock(HttpServletResponse.class);
when(response.getWriter()).thenReturn(new PrintWriter(stream));
extractor = new DefaultTypeNameExtractor();
initializer = new HibernateProxyInitializer();
serializee = new Serializee();
this.serialization = new GsonJSONSerialization(response, extractor, initializer, createBuilder(), serializee);
}