static void closeWithExpects(AsyncSSLEngine engine, MockObject sslListener) throws IOException {
		engine.close();
		
		String[] methodNames = new String[2];
		methodNames[0] = "packetEncrypted";
		methodNames[1] = "closed";
		sslListener.expect(methodNames);
	}