### Question:
StatelessSessionFactory { public boolean containsJwt(HttpServletRequest request) throws SessionException { return containsJwt(new SessionID(request)); } @Inject  StatelessSessionFactory(StatelessJWTCache cache,
                                   SessionServerConfig sessionServerConfig,
                                   SessionServiceConfig sessionServiceConfig); boolean containsJwt(HttpServletRequest request); boolean containsJwt(String tokenId); boolean containsJwt(SessionID sid); StatelessSession generate(String tokenId); SessionInfo getSessionInfo(SessionID sessionID); StatelessSession generate(SessionInfo info); StatelessSession generate(InternalSession internalSession); StatelessSession generate(SessionID sessionID); static String getJWTFromSessionID(SessionID sessionID, boolean cleanupC66Encoding);  }### Answer:
@Test public void shouldContainJwtInSessionID() { SessionID mockSession = mock(SessionID.class); given(mockSession.getTail()).willReturn("badger"); assertThat(factory.containsJwt(mockSession)).isTrue(); }