// Check if the file histories were based on the correct originals
LsOperationOptions options = new LsOperationOptions();
options.setFetchHistories(true);
options.setPathExpression("moved_folder/subfolder1/");
LsOperationResult lsOperationResult = clientA.ls(options);
for (PartialFileHistory fileHistory : lsOperationResult.getFileVersions().values()) {
assertTrue(fileHistory.getFileVersion(2).getPath().endsWith(fileHistory.getFileVersion(1).getPath()));
}
options.setPathExpression("moved_folder/subfolder2/");
lsOperationResult = clientA.ls(options);
for (PartialFileHistory fileHistory : lsOperationResult.getFileVersions().values()) {
assertTrue(fileHistory.getFileVersion(2).getPath().endsWith(fileHistory.getFileVersion(1).getPath()));
}
// Tear down
clientA.deleteTestData();