private void createStoreFile(File storeDescriptorFile, byte[] toBytes) throws IOException {
    CrcOutputStream crcOutputStream = new CrcOutputStream(new FileOutputStream(storeDescriptorFile));
    DataOutputStream dataOutputStream = new DataOutputStream(crcOutputStream);
    dataOutputStream.write(toBytes);
    dataOutputStream.writeLong(crcOutputStream.getValue());
    dataOutputStream.close();
  }
Creates a new StoreDescriptor file with the given byte array as content
@param storeDescriptorFile the store descriptor file
@param toBytes content that needs to go into the file
@throws IOException
ambry-store/src/test/java/com/github/ambry/store/StoreDescriptorTest.java