public Authority getAuthority() {
    return mUri.getAuthority();
  }
@Test
  public void authorityTypeTests() {
    assertTrue(new AlluxioURI("file", Authority.fromString("localhost:8080"), "/b/c").getAuthority()
        instanceof SingleMasterAuthority);

    assertTrue(new AlluxioURI("file", Authority.fromString("zk@host:2181"), "/b/c").getAuthority()
        instanceof ZookeeperAuthority);
    assertTrue(new AlluxioURI("alluxio://zk@host1:2181,host2:2181,host3:2181/b/c").getAuthority()
        instanceof ZookeeperAuthority);
    assertTrue(new AlluxioURI("alluxio://zk@host1:2181;host2:2181;host3:2181/b/c").getAuthority()
        instanceof ZookeeperAuthority);

    assertTrue(new AlluxioURI("file", Authority.fromString(""), "/b/c").getAuthority()
        instanceof NoAuthority);
    assertTrue(new AlluxioURI("file", null, "/b/c").getAuthority()
        instanceof NoAuthority);
    assertTrue(new AlluxioURI("file", Authority.fromString(null), "/b/c").getAuthority()
        instanceof NoAuthority);
    assertTrue(new AlluxioURI("file:///b/c").getAuthority()
        instanceof NoAuthority);

    assertTrue(new AlluxioURI("file", Authority.fromString("ebj@logical"), "/b/c").getAuthority()
        instanceof EmbeddedLogicalAuthority);

    assertTrue(new AlluxioURI("file", Authority.fromString("zk@logical"), "/b/c").getAuthority()
        instanceof ZookeeperLogicalAuthority);

    assertTrue(new AlluxioURI("file", Authority.fromString("localhost"), "/b/c").getAuthority()
        instanceof UnknownAuthority);
  }