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

    when(permission.canExtractForAccessibility()).thenReturn(Boolean.FALSE);
    victim.ensurePermission(PdfAccessPermission.EXTRACTION_FOR_DISABLES);
}