public void testUploadSameVersion() throws IllegalFileLocation, GetFailedException, IOException,
NoSessionException, InvalidProcessStateException, IllegalArgumentException,
NoPeerConnectionException {
// upload the same content again
IProcessComponent process = ProcessFactory.instance().createUpdateFileProcess(file, uploader);
TestProcessComponentListener listener = new TestProcessComponentListener();
process.attachListener(listener);
process.start();
H2HWaiter waiter = new H2HWaiter(60);
do {
waiter.tickASecond();
} while (!listener.hasFailed());
// verify if the md5 hash did not change
UserProfile userProfile = UseCaseTestUtil.getUserProfile(downloader, userCredentials);
FileIndex fileNode = (FileIndex) userProfile.getFileByPath(file, uploaderRoot);
Assert.assertTrue(H2HEncryptionUtil.compareMD5(file, fileNode.getMD5()));