def METHOD_NAME():
  tmpdir = tempfile.mkdtemp()
  finish = HBASE_CONF_DIR.set_for_testing(tmpdir)
  try:
    xml = hbase_site_xml()
    open_file(os.path.join(tmpdir, 'hbase-site.xml'), 'w').write(xml)
    reset()
    assert_equal('NOSASL', get_server_authentication())
    assert_equal('test', get_server_principal())
    security = HbaseApi._get_security()
    assert_equal('test', security['kerberos_principal_short_name'])
    assert_equal(False, security['use_sasl'])
  finally:
    reset()
    finish()
    shutil.rmtree(tmpdir)