public function testLookupByAuthor()
 {
     $author = 'John Satzinger';
     // Retrieve volumes using the lookup manager
     $volumes = $this->volume_lookup_manager->lookupByAuthor($author)->getItems();
     $query = new VolumeSearchQuery();
     $query->setAuthorName($author);
     $json_volumes = $this->callApi($query);
     foreach ($volumes as $k => $volume) {
         $this->annotation_mapper_test->testVolumeEntityMapping($json_volumes['items'][$k], $volume);
     }
 }
 /**
  * Find a volume by an ISBN.
  *
  * @param string $isbn
  * @return Volume|null
  */
 public function findByISBN($isbn)
 {
     /** @var VolumeSearchQuery $query */
     $query = new VolumeSearchQuery();
     $query->setIsbn($isbn);
     $volumes = $this->lookup($query);
     if ($volumes->getTotalItems()) {
         return $volumes->getItems()[0];
     }
     return null;
 }