701N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 701N/A * Copyright (c) 2009-2015 Oracle and/or its affiliates. All rights reserved. 701N/A * The contents of this file are subject to the terms of either the GNU 701N/A * General Public License Version 2 only ("GPL") or the Common Development 701N/A * and Distribution License("CDDL") (collectively, the "License"). You 701N/A * may not use this file except in compliance with the License. You can 701N/A * obtain a copy of the License at 701N/A * language governing permissions and limitations under the License. 701N/A * When distributing the software, include this License Header Notice in each 701N/A * GPL Classpath Exception: 701N/A * Oracle designates this particular file as subject to the "Classpath" 701N/A * exception as provided by Oracle in the GPL Version 2 section of the License 701N/A * file that accompanied this code. 701N/A * If applicable, add the following below the License Header, with the fields 701N/A * enclosed by brackets [] replaced by your own identifying information: 701N/A * "Portions Copyright [year] [name of copyright owner]" 701N/A * If you wish your version of this file to be governed by only the CDDL or 701N/A * only the GPL Version 2, indicate your decision by adding "[Contributor] 701N/A * elects to include this software in this distribution under the [CDDL or GPL 701N/A * Version 2] license." If you don't indicate a single choice of license, a 701N/A * recipient has the option to distribute your version of this file under 701N/A * either the CDDL, the GPL Version 2 or to extend the choice of license to 701N/A * its licensees as provided above. However, if you add GPL Version 2 code 701N/A * and therefore, elected the GPL Version 2 license, then the option applies 701N/A * only if the new code is made subject to such option by the copyright 701N/A * Test FETCH and SEARCH responses with a message number that's out of range. 701N/A // timeout the test in case of deadlock 701N/A //session.setDebug(true); 701N/A //ex.printStackTrace(); 701N/A * Custom handler. Returns responses for messages that don't