}
/** */
public void testTimeout() throws Exception
{
Wiser wiser = new Wiser();
wiser.setPort(PORT);
wiser.getServer().setConnectionTimeout(1000);
wiser.start();
Socket sock = new Socket(InetAddress.getLocalHost(), PORT);
OutputStream out = sock.getOutputStream();
PrintWriter writer = new PrintWriter(new OutputStreamWriter(out));
writer.print("HELO foo\r\n");
assert(!writer.checkError());
Thread.sleep(2000);
writer.print("HELO bar\r\n");
assert(writer.checkError());
wiser.stop();
}