+
+ /*
+ * different id but authoritative
+ */
+ pdb1 = new PDBEntry("af:1xyz", "A", null, "a/b/c/File");
+ pdb2 = new PDBEntry("af-1xyz", "A", null, "a/b/c/File");
+ pdb1.setAuthoritative(true);
+
+ assertTrue(pdb1.isAuthoritative());
+ assertFalse(pdb2.isAuthoritative());
+ // can update pdb1 (authoritative) from pdb2 (non-authoritative)
+ assertTrue(pdb1.updateFrom(pdb2));
+ // but the ID must remain the same
+ assertEquals(pdb1.getId(), "af:1xyz");
+