RpcSystemFileCommandsHelper extends SymbolicLinkHelper { @Override public boolean setReadable(String fileName, boolean readable, boolean ownerOnly) { return new File(fileName).setReadable(readable, 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 setReadable() throws Exception { boolean setReadable = rpcSystemFileCommandsHelper.setReadable(mockFile.toString(), true, false); assertThat(setReadable, is(true)); setReadable = rpcSystemFileCommandsHelper.setReadable(mockFile.toString(), true, true); assertThat(setReadable, is(true)); setReadable = rpcSystemFileCommandsHelper.setReadable(mockFile.toString(), false, true); assertThat(setReadable, is(true)); setReadable = rpcSystemFileCommandsHelper.setReadable(noExistFileName, true, false); assertThat(setReadable, is(false)); }