### Question:
NotificationSettingsManager { @Transactional(propagation = Propagation.REQUIRED) public void delete(long id) { notificationSettingsDao.deleteNotificationSettingsById(id); }  List<NotificationSettings> loadAll(); @Transactional(propagation = Propagation.REQUIRED) NotificationSettings createOrUpdate(NotificationSettings settings); NotificationSettings load(NotificationType type); NotificationSettings load(long id); @Transactional(propagation = Propagation.REQUIRED) void delete(long id);  }### Answer:
@Test @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Throwable.class) public void testDelete() { NotificationTemplate template = createTemplate(1L, TEMPLATE); NotificationSettings settings = createSettings(NotificationType.LONG_RUNNING, template.getId(), 1L, 1L, Collections.emptyList()); notificationSettingsManager.createOrUpdate(settings); NotificationSettings loaded = notificationSettingsManager.load(NotificationType.LONG_RUNNING); Assert.assertNotNull(loaded); notificationSettingsManager.delete(loaded.getId()); loaded = notificationSettingsManager.load(NotificationType.LONG_RUNNING); Assert.assertNull(loaded); }