@Test
public void testIsAuthoritativeCompatibilityItemToPathMetadata()
    throws Exception {

  Item item = Mockito.spy(testDirItem);
  item.withBoolean(IS_AUTHORITATIVE, true);
  PathMetadataDynamoDBTranslation.IGNORED_FIELDS.add(IS_AUTHORITATIVE);
  final String user =
      UserGroupInformation.getCurrentUser().getShortUserName();
  DDBPathMetadata meta = itemToPathMetadata(item, user);
  Mockito.verify(item, Mockito.never()).getBoolean(IS_AUTHORITATIVE);
  assertFalse(meta.isAuthoritativeDir());
}