@Test public void testReqrepInproc() { Ctx ctx = ZMQ.init(1); assertThat(ctx, notNullValue()); SocketBase sb = ZMQ.socket(ctx, ZMQ.ZMQ_REP); assertThat(sb, notNullValue()); boolean brc = ZMQ.bind(sb, "inproc://a"); assertThat(brc, is(true)); SocketBase sc = ZMQ.socket(ctx, ZMQ.ZMQ_REQ); assertThat(sc, notNullValue()); brc = ZMQ.connect(sc, "inproc://a"); assertThat(brc, is(true)); Helper.bounce(sb, sc); // Tear down the wiring. ZMQ.close(sb); ZMQ.close(sc); ZMQ.term(ctx); }