### Question:
LocalOperations implements SessionOperations { public void logout(Session session) throws SessionException { if (debug.messageEnabled()) { debug.message(MessageFormat.format( "Local logout for {0}", session.getID().toString())); } service.logout(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 shouldUseSessionServiceForLogout() throws SessionException { local.logout(mockSession); verify(mockService).logout(eq(mockSessionID)); }