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

    when(permission.canPrint()).thenReturn(Boolean.FALSE);
    victim.ensurePermission(PdfAccessPermission.PRINT);
}