public void testClientClose() throws Exception {
		testBasic();
		
		clientEngine.initiateClose();
		
		ByteBuffer tmp = ByteBuffer.allocate(10);
		helper.putString(tmp, "asdf");
		helper.doneFillingBuffer(tmp);
		try {
			clientEngine.feedPlainPacket(tmp, null);
			fail("should have thrown exception");
		} catch(IllegalStateException e) {}
		
		ByteBuffer b = clientList.getPacketEncrypted();
		
		serverEngine.feedEncryptedPacket(b, null);
		
		b = serverList.getPacketEncrypted();
		Assert.assertTrue(serverList.isClosed());
		
		clientEngine.feedEncryptedPacket(b, null);
		
		Assert.assertTrue(clientList.isClosed());
	}