RpcSystemFileCommandsHelper extends SymbolicLinkHelper { @Override public boolean isSymlink(String fileName) { return isSymbolicLink(fileName); }  @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 isSymlink() throws Exception { boolean isSymlink = rpcSystemFileCommandsHelper.isSymlink(mockFile.toString()); assertThat(isSymlink, is(false)); isSymlink = rpcSystemFileCommandsHelper.isSymlink(symlinkFile.toString()); assertThat(isSymlink, is(true)); }