@Test
  public void testTxnTypeWithDisabledReadOnlyFeature() throws Exception {
    enableReadOnlyTxnFeature(false);
    Assert.assertEquals(AcidUtils.getTxnType(conf, ParseUtils.parse(query, new Context(conf))),
        txnType == TxnType.READ_ONLY ? TxnType.DEFAULT : txnType);
  }
Transaction type derived from the original query test.
ql/src/test/org/apache/hadoop/hive/ql/parse/TestParseUtils.java