### Question:
MySrvHumeurAction extends DispatchActionForLoggedUserWithObject { public ActionForward delete(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { final HttpSession session = request.getSession(true); final VObject theObject = SessionTools.getRabbitFromSession(session); for (final SubscriptionData aSubscription : SubscriptionData.findByApplicationAndObject(Application.NativeApplication.MOOD.getApplication(), theObject)) { try { SubscriptionManager.deleteSubscription(aSubscription); } catch (final Exception e) { MySrvHumeurAction.LOGGER.fatal(e, e); } } return load(mapping, form, request, response); }  ActionForward load(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response); ActionForward activate(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response); ActionForward update(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response); ActionForward delete(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response);  }### Answer:
@Test public void activateService() { final User myUser = getActionTestUser(); final VObject myObject = Factories.VOBJECT.findByOwner(myUser).get(0); for (final SubscriptionData subscription : SubscriptionData.findByApplicationAndObject(Application.NativeApplication.MOOD.getApplication(), myObject)) { subscription.delete(); } }