@Test
  public void newSchedulerTest() throws Exception {
    ScheduledExecutorService scheduler = Utils.newScheduler(2, false);
    Future<String> future = scheduler.schedule(new Callable<String>() {
      @Override
      public String call() {
        return Thread.currentThread().getName();
      }
    }, 50, TimeUnit.MILLISECONDS);
    String threadName = future.get(10, TimeUnit.SECONDS);
    assertTrue("Unexpected thread name returned: " + threadName, threadName.startsWith("ambry-scheduler-"));
    scheduler.shutdown();
  }
Test {@link Utils#newScheduler(int, String, boolean)}
ambry-utils/src/test/java/com/github/ambry/utils/UtilsTest.java