@Test(expected = RuntimeException.class)
  public void testLoadGeneratorFails() throws InterruptedException, UnknownHostException {
    LlapLoadGeneratorService service = new LlapLoadGeneratorService();

    HiveConf conf = new HiveConf();
    HiveConf.setVar(conf, HiveConf.ConfVars.HIVE_TEST_LOAD_HOSTNAMES,
        InetAddress.getLocalHost().getHostName() + ",???");
    HiveConf.setFloatVar(conf, HiveConf.ConfVars.HIVE_TEST_LOAD_UTILIZATION, 1.2f);
    HiveConf.setTimeVar(conf, HiveConf.ConfVars.HIVE_TEST_LOAD_INTERVAL, 5, TimeUnit.MILLISECONDS);

    service.init(conf);
    service.start();
    service.stop();
  }
Test to make sure that the LLAP nodes are able to start with the load generator.
llap-server/src/test/org/apache/hadoop/hive/llap/daemon/impl/TestLlapLoadGeneratorService.java