### Question:
TrashOperationsAOImpl extends IRODSGenericAO implements TrashOperationsAO { @Override public void emptyTrashForLoggedInUser(final String irodsZone, final int age) throws JargonException { log.info("emptyTrash()"); String operativeZone = irodsZone; if (operativeZone == null || operativeZone.isEmpty()) { operativeZone = getIRODSAccount().getZone(); } TrashOptions trashOptions = new TrashOptions(); trashOptions.setAgeInMinutes(age); trashOptions.setRecursive(true); trashOptions.setTrashOperationMode(TrashOperationMode.USER); log.info("operativeZone:{}", operativeZone); log.info("trashOptions:{}", trashOptions); emptyTrash(operativeZone, MiscIRODSUtils.buildTrashHome(getIRODSAccount().getUserName(), operativeZone), trashOptions); } TrashOperationsAOImpl(final IRODSSession irodsSession, final IRODSAccount irodsAccount); @Override IRODSFile getTrashHomeForLoggedInUser(); @Override IRODSFile getOrphanTrashHome(final String zone); @Override IRODSFile getTrashHome(final String zone); @Override void emptyTrashForLoggedInUser(final String irodsZone, final int age); @Override void emptyTrashAtPathForLoggedInUser(final String irodsPath, final String irodsZone, final int age); @Override void emptyAllTrashAsAdmin(final String zone, final int age); @Override void emptyTrashAtPathAdminMode(final String irodsPath, final String userName, final String zone,
			final int age); @Override void emptyTrashAdminMode(final String userName, final String zone, final int age); @Override void emptyOrphanTrash(final String zone); void emptyTrashAdminMode(final String userName, final String irodsZone, final String irodsPath,
			final TrashOptions trashOptions); static final Logger log; }### Answer:
@Test public void testEmptyTrashForLoggedInUser() throws Exception { String testFileName = "testEmptyTrashForLoggedInUser.txt"; String testCollectionName = "testEmptyTrashForLoggedInUser"; String absPath = scratchFileUtils.createAndReturnAbsoluteScratchPath(IRODS_TEST_SUBDIR_PATH); FileGenerator.generateFileOfFixedLengthGivenName(absPath, testFileName, 8); String targetIrodsCollection = testingPropertiesHelper .buildIRODSCollectionAbsolutePathFromSecondaryTestProperties(testingProperties, IRODS_TEST_SUBDIR_PATH + "/" + testCollectionName); IRODSAccount irodsAccount = testingPropertiesHelper .buildIRODSAccountFromSecondaryTestProperties(testingProperties); irodsAccount.setDefaultStorageResource(""); File sourceFile = new File(absPath + testFileName); IRODSFile targetIRODSColl = irodsFileSystem.getIRODSFileFactory(irodsAccount) .instanceIRODSFile(targetIrodsCollection); targetIRODSColl.deleteWithForceOption(); targetIRODSColl.mkdirs(); DataTransferOperations dataTransferOperations = irodsFileSystem.getIRODSAccessObjectFactory() .getDataTransferOperations(irodsAccount); dataTransferOperations.putOperation(sourceFile, targetIRODSColl, null, null); targetIRODSColl.delete(); TrashOperationsAO trashOperationsAO = irodsFileSystem.getIRODSAccessObjectFactory() .getTrashOperationsAO(irodsAccount); trashOperationsAO.emptyTrashForLoggedInUser("", 0); IRODSFile trashHome = trashOperationsAO.getTrashHomeForLoggedInUser(); Assert.assertTrue("trash not empty", trashHome.listFiles().length == 0); }