public void update() {
NotificationTO notificationTO = restTemplate.getForObject(BASE_URL + "notification/read/{notificationId}.json",
NotificationTO.class, "100");
assertNotNull(notificationTO);
notificationTO.setRecipients(NodeCond.getLeafCond(new MembershipCond()));
SyncopeClientException exception = null;
try {
restTemplate.postForObject(BASE_URL + "notification/update.json", notificationTO, NotificationTO.class);
} catch (SyncopeClientCompositeErrorException e) {
exception = e.getException(SyncopeClientExceptionType.InvalidNotification);
}
assertNotNull(exception);
MembershipCond membCond = new MembershipCond();
membCond.setRoleId(7L);
NodeCond recipients = NodeCond.getLeafCond(membCond);
notificationTO.setRecipients(recipients);
NotificationTO actual = restTemplate.postForObject(BASE_URL + "notification/update.json", notificationTO,