### Question:
ObjectAclFactory implements AclFactory { @Override public boolean isMarkedForDeletion(PID pid) { return getObjectAcls(pid).stream() .anyMatch(p -> DELETED_PROPERTY_URI.equals(p.getKey()) || TOMBSTONE_URI.equals(p.getValue())); } ObjectAclFactory(); void init(); @Override Map<String, Set<String>> getPrincipalRoles(PID pid); @Override List<RoleAssignment> getStaffRoleAssignments(PID pid); @Override List<RoleAssignment> getPatronRoleAssignments(PID pid); @Override List<RoleAssignment> getPatronAccess(PID pid); @Override Date getEmbargoUntil(PID pid); @Override boolean isMarkedForDeletion(PID pid); long getCacheTimeToLive(); void setCacheTimeToLive(long cacheTimeToLive); long getCacheMaxSize(); void setCacheMaxSize(long cacheMaxSize); void setRepositoryObjectCacheLoader(RepositoryObjectCacheLoader repositoryObjectCacheLoader);  }### Answer:
@Test public void isMarkedForDeletionTest() throws Exception { objResc.addLiteral(CdrAcl.markedForDeletion, true); boolean result = aclFactory.isMarkedForDeletion(pid); assertTrue(result); }
@Test public void isTombstoneTest() throws Exception { objResc.addProperty(RDF.type, Cdr.Tombstone); boolean result = aclFactory.isMarkedForDeletion(pid); assertTrue(result); }
@Test public void isMarkedForDeletionFalseTest() throws Exception { objResc.addLiteral(CdrAcl.canViewOriginals, PUBLIC_PRINC); boolean result = aclFactory.isMarkedForDeletion(pid); assertFalse(result); }