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