ThreadUtils { public static int bestEffortThreadNums() { return Math.min(OsUtils.getCpuCount(), 8); }  static Thread newThread(String threadName, Runnable runnable); static int bestEffortThreadNums();  }
@Test public void testBestEffortThreadNums() { Assert.assertTrue(ThreadUtils.bestEffortThreadNums() < 8); }