public function testNotFoundArray()
 {
     $array = [new Inventory(Inventory::MSG_TX, Buffer::hex('4141414141414141414141414141414141414141414141414141414141414141')), new Inventory(Inventory::MSG_TX, Buffer::hex('4141414141414141414141414141414141414141414141414141414141414142')), new Inventory(Inventory::MSG_TX, Buffer::hex('4141414141414141414141414141414141414141414141414141414141414143'))];
     $not = new NotFound($array);
     $this->assertEquals($array, $not->getItems());
     $this->assertEquals(count($array), count($not));
 }
 /**
  * @param NotFound $notFound
  * @return \BitWasp\Buffertools\Buffer
  */
 public function serialize(NotFound $notFound)
 {
     return $this->getTemplate()->write([$notFound->getItems()]);
 }