@Assumption(methods = "onUnix")
public void shouldSetExecutableOnUnix() {
OverthereFile remoteFile = connection.getTempFile("executable.sh");
OverthereUtils.write(generateRandomBytes(256), remoteFile);
assertThat(remoteFile.canExecute(), equalTo(false));
remoteFile.setExecutable(true);
assertThat(remoteFile.canExecute(), equalTo(true));
remoteFile.setExecutable(false);
assertThat(remoteFile.canExecute(), equalTo(false));
}