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

    when(permission.canFillInForm()).thenReturn(Boolean.FALSE);
    victim.ensurePermission(PdfAccessPermission.FILL_FORMS);
}