@Test
public void testSetAuthoritative() {

  Path path = new Path("/path");
  DirListingMetadata meta = new DirListingMetadata(path, null, false);
  assertEquals(path, meta.getPath());
  assertNotNull(meta.getListing());
  assertTrue(meta.getListing().isEmpty());
  assertFalse(meta.isAuthoritative());
  meta.setAuthoritative(true);
  assertTrue(meta.isAuthoritative());
}