Removed redundant code in MockIMap