'Check that we can serialize flows.'

def testFlowSerialization(self):

    session_id = flow.GRRFlow.StartFlow(client_id=self.client_id, flow_name=flow_test_lib.FlowOrderTest.__name__, token=self.token)
    flow_obj = aff4.FACTORY.Open(session_id, aff4_type=flow_test_lib.FlowOrderTest, age=aff4.ALL_TIMES, token=self.token)
    self.assertEqual(flow_obj.__class__, flow_test_lib.FlowOrderTest)
