@Test
public void testPrintUnethical() throws TaskPermissionsException {

    System.setProperty(Sejda.UNETHICAL_READ_PROPERTY_NAME, "true");
    when(permission.canPrint()).thenReturn(Boolean.FALSE);
    victim.ensurePermission(PdfAccessPermission.PRINT);
    System.setProperty(Sejda.UNETHICAL_READ_PROPERTY_NAME, "false");
}