public void testComplexSerialization()
{
StateCompiler compiler = new StateCompiler();
AccumulatorStateFactory<TestComplexState> factory = compiler.generateStateFactory(TestComplexState.class);
AccumulatorStateSerializer<TestComplexState> serializer = compiler.generateStateSerializer(TestComplexState.class);
TestComplexState singleState = factory.createSingleState();
TestComplexState deserializedState = factory.createSingleState();
singleState.setBoolean(true);
singleState.setLong(1);