### Question:
StatelessSessionActivator extends DefaultSessionActivator { @Override protected InternalSession createSession(SessionService sessionService, LoginState loginState) { return sessionService.newInternalSession(loginState.getOrgDN(), null, true); } @VisibleForTesting  StatelessSessionActivator(final StatelessSessionFactory statelessSessionFactory); private  StatelessSessionActivator(); @Override boolean activateSession(final LoginState loginState, final SessionService sessionService,
                                   final InternalSession authSession, final Subject subject, final Object loginContext);  }### Answer:
@Test public void shouldCreateStatelessSessions() { String orgDn = "/stateless"; given(mockLoginState.getOrgDN()).willReturn(orgDn); testActivator.createSession(mockSessionService, mockLoginState); verify(mockSessionService).newInternalSession(orgDn, null, true); }