### Question:
IRODSFileOutputStream extends OutputStream { public int getFileDescriptor() { return irodsFile.getFileDescriptor(); } protected  IRODSFileOutputStream(final IRODSFile irodsFile, final FileIOOperations fileIOOperations,
			final OpenFlags openFlags); @Override void close(); @Override void write(final byte[] b, final int off, final int len); @Override void write(final byte[] b); @Override void write(final int b); int getFileDescriptor();  }### Answer:
@Test public final void testIRODSFileOutputStreamIRODSFileShouldOpen() throws Exception { String testFileName = "testIRODSFileOutputStreamIRODSFileShouldOpen.txt"; String absPath = scratchFileUtils.createAndReturnAbsoluteScratchPath(IRODS_TEST_SUBDIR_PATH); String localFilePath = FileGenerator.generateFileOfFixedLengthGivenName(absPath, testFileName, 8); File localFile = new File(localFilePath); String targetIrodsCollection = testingPropertiesHelper .buildIRODSCollectionAbsolutePathFromTestProperties(testingProperties, IRODS_TEST_SUBDIR_PATH); IRODSAccount irodsAccount = testingPropertiesHelper.buildIRODSAccountFromTestProperties(testingProperties); IRODSAccessObjectFactory accessObjectFactory = irodsFileSystem.getIRODSAccessObjectFactory(); IRODSFileFactory irodsFileFactory = accessObjectFactory.getIRODSFileFactory(irodsAccount); IRODSFile irodsFile = irodsFileFactory.instanceIRODSFile(targetIrodsCollection + '/' + testFileName); DataTransferOperations dto = accessObjectFactory.getDataTransferOperations(irodsAccount); dto.putOperation(localFile, irodsFile, null, null); IRODSFileOutputStream irodsFileOutputStream = irodsFileFactory.instanceIRODSFileOutputStream(irodsFile); irodsFileSystem.closeAndEatExceptions(); assertionHelper.assertIrodsFileOrCollectionExists(targetIrodsCollection + '/' + testFileName, irodsFileSystem.getIRODSAccessObjectFactory(), irodsAccount); Assert.assertTrue("no file descriptor assigned", irodsFileOutputStream.getFileDescriptor() > -1); }