private void testGetForExistingBlobs(List<BlobId> blobIds, Map<BlobId, ByteBuffer> blobIdToUploadedDataMap)
      throws Exception {
    StoreInfo storeInfo = store.get(blobIds, EnumSet.noneOf(StoreGetOptions.class));
    assertEquals("Number of records returned by get should be same as uploaded",
        storeInfo.getMessageReadSetInfo().size(), blobIds.size());
    for (int i = 0; i < storeInfo.getMessageReadSetInfo().size(); i++) {
      MessageInfo messageInfo = storeInfo.getMessageReadSetInfo().get(i);
      if (blobIdToUploadedDataMap.containsKey(messageInfo.getStoreKey())) {
        ByteBuffer uploadedData = blobIdToUploadedDataMap.get(messageInfo.getStoreKey());
        ByteBuffer downloadedData = ByteBuffer.allocate((int) messageInfo.getSize());
        WritableByteChannel writableByteChannel = Channels.newChannel(new ByteBufferOutputStream(downloadedData));
        storeInfo.getMessageReadSet().writeTo(i, writableByteChannel, 0, messageInfo.getSize());
        downloadedData.flip();
        assertEquals(uploadedData, downloadedData);
        break;
      }
    }
  }
Test cloud store get with a list of blobs that are all valid and previously uploaded in the store
@param blobIds list of blob ids to get
@param blobIdToUploadedDataMap map of expected blobid to data buffers
@throws Exception
ambry-vcr/src/test/java/com/github/ambry/vcr/CloudBlobStoreTest.java