    @Test
    public void testIsParentEmbargoed() throws Exception {

        addInheritedRoleAssignment(pid, PUBLIC_PRINC, UserRole.canViewMetadata);
        addInheritedRoleAssignment(pid, AUTHENTICATED_PRINC, UserRole.canViewMetadata);

        when(inheritedAclFactory.getEmbargoUntil(pid)).thenReturn(getNextYear());

        filter.filter(dip);

        verify(idb).setStatus(listCaptor.capture());
        assertTrue(listCaptor.getValue().contains(FacetConstants.EMBARGOED_PARENT));
        assertFalse(listCaptor.getValue().contains(FacetConstants.EMBARGOED));
        assertFalse(listCaptor.getValue().contains(FacetConstants.PUBLIC_ACCESS));
    }