@Test
  public void testParallelCompilationWithMultipleQuotas() throws Exception {
    conf.setBoolVar(HIVE_SERVER2_PARALLEL_COMPILATION, true);
    conf.setIntVar(HIVE_SERVER2_PARALLEL_COMPILATION_LIMIT, 2);

    initDriver(conf, 10);
    List<Integer> responseList = compileAndRespond(10);

    verifyThatWaitingCompileOpsCountIsEqualTo(0);
    verifyThatTimedOutCompileOpsCountIsZero(responseList);

    verifyThatConcurrentCompilationWasIndeed(responseList);
  }
Test that checks that the queries above the quota are timed out, so the compilation quota maximum is honored.
@throws Exception
ql/src/test/org/apache/hadoop/hive/ql/TestCompileLock.java