File file1 = createRandomFile(getBaseDir(), size);
File file2 = createRandomFile(getBaseDir(), size);
driftServer.saveChangeSetFiles(null, createChangeSetContentZipFile(file1, file2));
FileDAO fileDAO = new FileDAO(ds.getDB());
for (File expectedFile : asList(file1, file2)) {
InputStream inputStream = fileDAO.findOne(expectedFile.getName());
assertNotNull(inputStream, "Failed to find file in database with id " + expectedFile.getName());
File actualFile = new File(getBaseDir(), "actualContent");
actualFile.delete();
StreamUtil.copy(inputStream, new FileOutputStream(actualFile));
assertEquals(sha256(actualFile), sha256(expectedFile), "The SHA-256 hash in the database does not " +