	@Test
	void getAllSessionsForAuthenticatedPrincipal() {

		setUpSessions();
		List<SessionInformation> allSessionInfos = this.sessionRegistry
				.getAllSessions((AuthenticatedPrincipal) () -> USER_NAME, true);
		assertThat(allSessionInfos).extracting("sessionId").containsExactly(SESSION_ID, SESSION_ID2);
	}