### Question:
IRODSFileImpl extends File implements IRODSFile { @Override public boolean equals(final Object obj) { if (obj instanceof File) { File temp = (File) obj; return temp.getAbsolutePath().equals(getAbsolutePath()); } else { return false; } } protected  IRODSFileImpl(final String pathName, final IRODSFileSystemAO irodsFileSystemAO); protected  IRODSFileImpl(final String parent, final String child, final IRODSFileSystemAO irodsFileSystemAO); protected  IRODSFileImpl(final File parent, final String child, final IRODSFileSystemAO irodsFileSystemAO); @Override synchronized boolean canRead(); @Override synchronized boolean canWrite(); @Override synchronized boolean createNewFile(); @Override synchronized boolean createNewFileCheckNoResourceFound(final OpenFlags openFlags); @Override synchronized boolean delete(); @Override synchronized boolean deleteWithForceOption(); @Override void deleteOnExit(); @Override boolean equals(final Object obj); @Override synchronized boolean exists(); @Override File getAbsoluteFile(); @Override String getAbsolutePath(); @Override File getCanonicalFile(); @Override String getCanonicalPath(); @Override long getFreeSpace(); @Override File getParentFile(); @Override long getTotalSpace(); @Override long getUsableSpace(); @Override int hashCode(); @Override boolean isAbsolute(); @Override synchronized boolean isDirectory(); @Override synchronized boolean isFile(); @Override String getPath(); @Override boolean isHidden(); @Override synchronized long lastModified(); @Override synchronized long length(); @Override synchronized String[] list(); @Override synchronized String[] list(final FilenameFilter filter); @Override synchronized File[] listFiles(); @Override synchronized File[] listFiles(final FileFilter filter); @Override synchronized File[] listFiles(final FilenameFilter filter); @Override boolean mkdir(); @Override boolean mkdirs(); @Override synchronized boolean renameTo(final IRODSFile dest); @Override boolean renameTo(final File dest); @Override boolean setExecutable(final boolean executable, final boolean ownerOnly); @Override boolean setExecutable(final boolean executable); @Override boolean setLastModified(final long time); @Override boolean setReadable(final boolean readable, final boolean ownerOnly); @Override boolean setReadable(final boolean readable); @Override boolean setReadOnly(); @Override boolean setWritable(final boolean writable, final boolean ownerOnly); @Override boolean setWritable(final boolean writable); @Override String toString(); @Override URI toURI(); @Override URL toFileBasedURL(); @Override String getResource(); @Override void setResource(final String resource); @Override synchronized int getFileDescriptor(); @Override @Deprecated synchronized int openReadOnly(); @Override synchronized int open(); @Override synchronized int open(final OpenFlags openFlags); @Override synchronized void close(); @Override synchronized void closeGivenDescriptor(final int fd); @Override int compareTo(final IRODSFile pathname); @Override String getName(); @Override String getParent(); @Override synchronized boolean canExecute(); @Override OpenFlags getOpenFlags(); @Override void setOpenFlags(final OpenFlags openFlags); IRODSFileSystemAO getIrodsFileSystemAO(); void setIrodsFileSystemAO(final IRODSFileSystemAO irodsFileSystemAO);  }### Answer:
@Test public final void testNotEqualsObject() throws Exception { IRODSProtocolManager irodsConnectionManager = IRODSSimpleProtocolManager.instance(); IRODSAccount irodsAccount = testingPropertiesHelper.buildIRODSAccountFromTestProperties(testingProperties); IRODSSession irodsSession = IRODSSession.instance(irodsConnectionManager); IRODSAccessObjectFactory accessObjectFactory = IRODSAccessObjectFactoryImpl.instance(irodsSession); IRODSFileFactory irodsFileFactory = accessObjectFactory.getIRODSFileFactory(irodsAccount); String testFileName = "testEquals.txt"; String targetIrodsCollection = testingPropertiesHelper.buildIRODSCollectionAbsolutePathFromTestProperties( testingProperties, IRODS_TEST_SUBDIR_PATH) + '/' + testFileName; IRODSFile irodsFile = irodsFileFactory.instanceIRODSFile(targetIrodsCollection); IRODSFile irodsFile2 = irodsFileFactory.instanceIRODSFile(targetIrodsCollection + "xxx"); irodsSession.closeSession(); Assert.assertFalse("files should not be equal", irodsFile.equals(irodsFile2)); }