### Question:
JedisFactory { public static final Jedis getJedis() { if ( jedis == null ) { initJedis(); } return jedis; }  static void initJedis(); static Jedis createJedis(String host, int port); static void disableJedis(); static final Jedis getJedis(); static final Jedis getJedisDB();  }### Answer:
@Test public void testMultiThread() throws Exception { final Jedis jedis = JedisFactory.getJedis(); TestUtil.doPerformMultiThread(new Runnable() { public void run() { jedis.set("testthread", "helloworld"); } }, "Jedis Thread Test", 10000, 10); assertTrue(true); }
@Test public void testMultiThread2() throws Exception { final Jedis jedis = JedisFactory.getJedis(); jedis.set("testthread", "helloworld"); TestUtil.doPerformMultiThread(new Runnable() { public void run() { Pipeline pipeline = jedis.pipelined(); pipeline.set("testthread", "helloworld"); pipeline.sync(); } }, "Jedis Thread Test", 10000, 10); }