### Question:
RemoteOperations implements SessionOperations { public void logout(Session session) throws SessionException { if (debug.messageEnabled()) { debug.message(MessageFormat.format( "Remote logout {0}", session.getID().toString())); } SessionRequest sreq = new SessionRequest(SessionRequest.Logout, session.getID().toString(), false); requests.sendRequestWithRetry(session.getSessionServiceURL(), sreq, session); } @Inject  RemoteOperations(@Named(SessionConstants.SESSION_DEBUG) Debug debug, Requests requests); SessionInfo refresh(Session session, boolean reset); void logout(Session session); void destroy(Session requester, Session session); void setProperty(Session session, String name, String value);  }### Answer:
@Test public void shouldUseRequestsForLogout() throws SessionException { remoteOperations.logout(mockSession); verify(mockRequests).sendRequestWithRetry(nullable(URL.class), any(SessionRequest.class), eq(mockSession)); }
@Test public void shouldUseRequestsForLogout() throws SessionException { remoteOperations.logout(mockSession); verify(mockRequests).sendRequestWithRetry(any(URL.class), any(SessionRequest.class), eq(mockSession)); }