@Test(expected = TaskPermissionsException.class)
public void testNotCopy() throws TaskPermissionsException {

    when(permission.canExtractContent()).thenReturn(Boolean.FALSE);
    victim.ensurePermission(PdfAccessPermission.COPY_AND_EXTRACT);
}