public static Context context(int ioThreads)
    {
        return new Context(ioThreads);
    }
@Test(expected = ZMQException.class)
    public void testBindSameAddress() throws IOException
    {
        int port = Utils.findOpenPort();
        ZMQ.Context context = ZMQ.context(1);

        ZMQ.Socket socket1 = context.socket(SocketType.REQ);
        ZMQ.Socket socket2 = context.socket(SocketType.REQ);
        socket1.bind("tcp://*:" + port);
        try {
            socket2.bind("tcp://*:" + port);
            fail("Exception not thrown");
        }
        catch (ZMQException e) {
            assertEquals(e.getErrorCode(), ZMQ.Error.EADDRINUSE.getCode());
            throw e;
        }
        finally {
            socket1.close();
            socket2.close();

            context.term();
        }
    }