PathMetadataDynamoDBTranslation { static Item pathMetadataToItem(DDBPathMetadata meta) { return pathMetadataToItem(meta, false); } private  PathMetadataDynamoDBTranslation();   }
@Test public void testPathMetadataToItem() { verify(pathMetadataToItem(testDirPathMetadata), testDirPathMetadata); verify(pathMetadataToItem(testFilePathMetadata), testFilePathMetadata); }
@Test public void testIsAuthoritativeCompatibilityPathMetadataToItem() { DDBPathMetadata meta = Mockito.spy(testFilePathMetadata); meta.setAuthoritativeDir(true); Item item = pathMetadataToItem(meta, true); Mockito.verify(meta, never()).isAuthoritativeDir(); assertFalse(item.hasAttribute(IS_AUTHORITATIVE)); }