@Test public void shouldRunHibernateLazyInitialization() throws Exception { LazyInitializer initializer = mock(LazyInitializer.class); HibernateProxy proxy = mock(HibernateProxy.class); when(proxy.getHibernateLazyInitializer()).thenReturn(initializer); Bazinga bazinga = new Bazinga(proxy); serialization.from(bazinga).include("value").serialize(); assertThat(result(), is("{\"bazinga\":{}}")); }
public <T> Serializer from(T object) { return from(object, null); }
GsonJSONSerialization implements JSONSerialization { public <T> Serializer from(T object) { return from(object, null); } }
GsonJSONSerialization implements JSONSerialization { public <T> Serializer from(T object) { return from(object, null); } GsonJSONSerialization(HttpServletResponse response, TypeNameExtractor extractor,
			ProxyInitializer initializer, VRaptorGsonBuilder builder, Serializee serializee); }
GsonJSONSerialization implements JSONSerialization { public <T> Serializer from(T object) { return from(object, null); } GsonJSONSerialization(HttpServletResponse response, TypeNameExtractor extractor,
			ProxyInitializer initializer, VRaptorGsonBuilder builder, Serializee serializee); boolean accepts(String format); Serializer from(T object); Serializer from(T object, String alias); NoRootSerialization withoutRoot(); JSONSerialization indented(); }
GsonJSONSerialization implements JSONSerialization { public <T> Serializer from(T object) { return from(object, null); } GsonJSONSerialization(HttpServletResponse response, TypeNameExtractor extractor,
			ProxyInitializer initializer, VRaptorGsonBuilder builder, Serializee serializee); boolean accepts(String format); Serializer from(T object); Serializer from(T object, String alias); NoRootSerialization withoutRoot(); JSONSerialization indented();  }