### Question:
KunderaThreadFactory implements ThreadFactory { private int getNext() { AtomicInteger threadCount = counters.get(name); if (threadCount == null) { threadCount = new AtomicInteger(); counters.put(name, threadCount); } return threadCount.incrementAndGet(); } KunderaThreadFactory(final String threadName); @Override Thread newThread(Runnable r);  }### Answer:
@Test public void testGetNext() { KunderaThreadFactory threadFactory = new KunderaThreadFactory("thread1"); Thread t = threadFactory.newThread(new Runnable() { @Override public void run() { log.info("running"); } }); Assert.assertNotNull(t); }