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

    when(permission.canModify()).thenReturn(Boolean.FALSE);
    victim.ensurePermission(PdfAccessPermission.MODIFY);
}