RpcSystemFileCommandsHelper extends SymbolicLinkHelper { @Override public boolean setExecutable(String fileName, boolean executable, boolean ownerOnly) { return new File(fileName).setExecutable(executable, ownerOnly); }  @Override boolean setWritable(String fileName, boolean writable); @Override boolean setReadable(String fileName, boolean readable, boolean ownerOnly); @Override boolean setOwnerReadOnly(String fileName); @Override boolean setExecutable(String fileName, boolean executable, boolean ownerOnly); @Override boolean canExecute(String fileName); @Override boolean isSymlink(String fileName);  }
@Test public void setExecutable() throws Exception { boolean setExecutable = rpcSystemFileCommandsHelper.setExecutable(mockFile.toString(), true, false); assertThat(setExecutable, is(true)); setExecutable = rpcSystemFileCommandsHelper.setExecutable(noExistFileName, true, false); assertThat(setExecutable, is(OSUtils.isWindows())); }