@Test
  public void testGetThriftServerType() throws Exception {
    ThriftHBaseServiceHandler handler = new ThriftHBaseServiceHandler(UTIL.getConfiguration(),
      UserProvider.instantiate(UTIL.getConfiguration()));
    assertEquals(TThriftServerType.ONE, handler.getThriftServerType());
  }
Asserts that the passed scanner is exhausted, and then closes the scanner.
@param scannerId the scanner to close
@param handler   the HBaseServiceHandler interfacing to HBase
hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftServer.java