public function testSerializer()
 {
     $buffer = Buffer::hex('4141414141414141414141414141414141414141414141414141414141414141');
     $inv = new Inventory(Inventory::ERROR, $buffer);
     $serializer = new InventorySerializer();
     $serialized = $inv->getBuffer();
     $parsed = $serializer->parse($serialized);
     $this->assertEquals($inv, $parsed);
 }