Context context = context().withHeader(Http.HeaderNames.AUTHORIZATION, credential);
BasicAuthAction action = new BasicAuthAction();
action.delegate = mock(Action.class);
// When
action.call(context);
// Then
assertThat(context.session()).includes(
entry(UserApp.SESSION_USERID, String.valueOf(user.id)),
entry(UserApp.SESSION_LOGINID, user.loginId),