/** * Verifies that the given {@link UnsupportedFileOperationException} is not <code>null</code> and that its * associated file operation matches the given one. * * @param e the {@link UnsupportedFileOperationException} to check * @param expectedFileOperation the expected file operation */ protected void assertUnsupportedFileOperationException(UnsupportedFileOperationException e, FileOperation expectedFileOperation) { assert e != null; assert expectedFileOperation.equals(e.getFileOperation()); }