### Question:
SessionManager { public static UserData getUserFromSessionId(String inSessionId, APICaller inCaller) throws ForbiddenException, InvalidSessionException { if (inCaller == null) { throw new ForbiddenException(); } if (SessionManager.isSessionValid(inSessionId, inCaller)) { final UserData theUserData = SessionManager.getUserFromValidSessionId(inSessionId); if (theUserData.isValid()) { return theUserData; } throw new InvalidSessionException(); } throw new InvalidSessionException(); }  static UserData getUserFromSessionParam(ActionParam inParams); static String generateSessionId(APICaller inCaller, UserData inUser, Date inExpiration); static UserData getUserFromSessionId(String inSessionId, APICaller inCaller); static boolean isSessionValid(String sessionId, APICaller inCaller); static UserData getUserFromValidSessionId(String sessionId);  }### Answer:
@Test(expected = InvalidSessionException.class) public void invalidSessionId() throws APIException { new UserMock(42, "myLogin", "myPassword", "myEmail@gmail.com", getSiteFrLang(), "France", "myFirstName", "myLastName", getParisTimezone(), "H", "Zip", "Paris", 1); final Date now = new Date(); final Application theApplication = new ApplicationMock(42, "My first application", getPrivateUser(), now);; final ApplicationCredentials cred = new ApplicationCredentialsMock("6992873d28d86925325dc52d15d6feec30bb2da5", "59e6060a53ab1be5", theApplication); final APICaller caller = new ApplicationAPICaller(ApplicationCredentialsData.getData(cred)); SessionManager.getUserFromSessionId("blabla", caller); }