private void putWithKeysAndCrcs(List<StoreKey> mockIdList, List<Long> crcList) throws StoreException {
    List<ByteBuffer> bufferList = new ArrayList<>();
    List<MessageInfo> messageInfoList = new ArrayList<>();
    for (int i = 0; i < mockIdList.size(); i++) {
      bufferList.add(ByteBuffer.allocate(PUT_RECORD_SIZE));
      MockId mockId = (MockId) mockIdList.get(i);
      messageInfoList.add(new MessageInfo(mockId, PUT_RECORD_SIZE, false, false, Utils.Infinite_Time, crcList.get(i),
          Utils.getRandomShort(TestUtils.RANDOM), Utils.getRandomShort(TestUtils.RANDOM), Utils.Infinite_Time));
    }
    MessageWriteSet writeSet = new MockMessageWriteSet(messageInfoList, bufferList);
    // Put the initial two messages.
    store.put(writeSet);
  }
Attempt to write a set of messages with keys and crcs from the given lists of keys and crcs.
@param mockIdList the list of keys of the messages.
@param crcList the list of crcs of the messages.
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/BlobStoreTest.java