### Question:
ThreadUtil { public static int determineNumberOfWorkerThreads() { final int threads = Config.getInstance().getPropertyAsInt(Config.AlpineKey.WORKER_THREADS); if (threads > 0) { return threads; } else if (threads == 0) { final int cores = SystemUtil.getCpuCores(); final int multiplier = Config.getInstance().getPropertyAsInt(Config.AlpineKey.WORKER_THREAD_MULTIPLIER); if (multiplier > 0) { return cores * multiplier; } else { return cores; } } return 1; } private  ThreadUtil(); static int determineNumberOfWorkerThreads();  }### Answer:
@Test public void determineNumberOfWorkerThreadsTest() { environmentVariables.set("ALPINE_WORKER_THREADS", "10"); Assert.assertEquals(10, ThreadUtil.determineNumberOfWorkerThreads()); environmentVariables.set("ALPINE_WORKER_THREADS", "0"); Assert.assertTrue(ThreadUtil.determineNumberOfWorkerThreads() > 0); }