}
public void testCompiledViewDefinitionWithGraphs_serialization() throws Exception {
final EHCacheViewExecutionCache cache = createCache();
final CompiledViewDefinitionWithGraphs object = createCompiledViewDefinitionWithGraphs();
final CompiledViewDefinitionWithGraphsHolder holder = cache.new CompiledViewDefinitionWithGraphsHolder(object);
assertSame(holder.get(), object);
final ByteArrayOutputStream baos = new ByteArrayOutputStream();
final ObjectOutputStream oos = new ObjectOutputStream(baos);
oos.writeObject(holder);
final ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
final ObjectInputStream ois = new ObjectInputStream(bais);