@Test
public void testShutdownTimeoutConfiguration() throws Throwable {

  // set the shutdown timeout and verify it can be read back.
  Configuration conf = new Configuration();
  long shutdownTimeout = 5;
  conf.setTimeDuration(SERVICE_SHUTDOWN_TIMEOUT,
      shutdownTimeout, TimeUnit.SECONDS);
  assertEquals(SERVICE_SHUTDOWN_TIMEOUT,
      shutdownTimeout,
      ShutdownHookManager.getShutdownTimeout(conf));
}