@Test
public void shouldRunHibernateLazyInitialization() throws Exception {

	LazyInitializer initializer = mock(LazyInitializer.class);
	SomeProxy proxy = new SomeProxy(initializer);
	proxy.name = "my name";
	proxy.aField = "abc";
	when(initializer.getPersistentClass()).thenReturn(Client.class);
	serialization.from(proxy).serialize();
	assertThat(result(), is("{\"client\": {\"name\": \"my name\",\"aField\": \"abc\"}}"));
	verify(initializer).initialize();
}