@Test
public void testCloudFileConstructor() throws URISyntaxException, StorageException {
CloudFile file = this.share.getRootDirectoryReference().getFileReference("file1");
CloudFile file2 = new CloudFile(file.getStorageUri(), file.getServiceClient().getCredentials());
assertEquals(file.getName(), file2.getName());
assertEquals(file.getStorageUri(), file2.getStorageUri());
assertEquals(file.getShare().getStorageUri(), file2.getShare().getStorageUri());
assertEquals(FileTestHelper.ensureTrailingSlash(file.getServiceClient().getStorageUri()),
FileTestHelper.ensureTrailingSlash(file2.getServiceClient().getStorageUri()));
CloudFile file3 = new CloudFile(file2);
assertEquals(file3.getName(), file2.getName());
assertEquals(file3.getStorageUri(), file2.getStorageUri());
assertEquals(file3.getShare().getStorageUri(), file2.getShare().getStorageUri());
assertEquals(FileTestHelper.ensureTrailingSlash(file3.getServiceClient().getStorageUri()),
FileTestHelper.ensureTrailingSlash(file2.getServiceClient().getStorageUri()));
}