assertEquals(notification1, _repo.findOne(notification1.getId()));
}
@Test
public void testFindAllNotNotifiedNotDeleted() {
MetadataNotification notification1 = newMetadataNotification();
notification1.setAction(MetadataNotificationAction.UPDATE);
notification1.setNotified(false);
notification1 = _repo.save(notification1);
assertEquals(1, _repo.findAllNotNotifiedForNotifier(notification1.getId().getNotifierId(),
MetadataNotificationAction.UPDATE).size());
notification1.setAction(MetadataNotificationAction.DELETE);
notification1 = _repo.save(notification1);
assertEquals(0, _repo.findAllNotNotifiedForNotifier(notification1.getId().getNotifierId(),
MetadataNotificationAction.UPDATE).size());
}