File smallFile = temp.newFile("small.dat");
byte[] contentsWritten = writeRandomBytes(smallFile, 1024);
OverthereFile smallLocalFile = LocalFile.valueOf(smallFile);
// copy local file to file in home dir
smallLocalFile.copyTo(fileInHomeDir);
assertThat(fileInHomeDir.exists(), equalTo(true));
// restrict access to file in home dir
connection.execute(sysoutHandler(), syserrHandler(), CmdLine.build("chmod", "0600", fileInHomeDir.getPath()));