### Question:
LocalOperations implements SessionOperations { @Override public void destroy(Session requester, Session session) throws SessionException { if (debug.messageEnabled()) { debug.message(MessageFormat.format("Local destroy for {0}", session.getID().toString())); } service.destroySession(requester, session.getID()); } @Inject  LocalOperations(@Named(SessionConstants.SESSION_DEBUG) Debug debug, SessionService service); SessionInfo refresh(Session session, boolean reset); void logout(Session session); @Override void destroy(Session requester, Session session); void setProperty(Session session, String name, String value);  }### Answer:
@Test public void shouldUseSessionServiceForDestroy() throws SessionException { given(mockService.getInternalSession(mockSessionID)).willReturn(mockInternalSession); local.destroy(mockRequester, mockSession); verify(mockService).destroySession(eq(mockRequester), eq(mockSessionID)); }