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

    when(permission.canPrintDegraded()).thenReturn(Boolean.FALSE);
    victim.ensurePermission(PdfAccessPermission.DEGRADATED_PRINT);
}