Testing the working of lookup in java and working with ZMQ and threads