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

    when(permission.canAssembleDocument()).thenReturn(Boolean.FALSE);
    victim.ensurePermission(PdfAccessPermission.ASSEMBLE);
}