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

    when(permission.isOwnerPermission()).thenReturn(Boolean.FALSE);
    victim.ensureOwnerPermissions();
}