### Question:
SecurityProcedures extends AuthProceduresBase { @Description( "Show the current user." ) @Procedure( name = "dbms.showCurrentUser", mode = DBMS ) public Stream<UserManagementProcedures.UserResult> showCurrentUser() { return Stream.of( userResultForSubject() ); }  @Deprecated @Description( "Show the current user. Deprecated by dbms.showCurrentUser." ) @Procedure( name = "dbms.security.showCurrentUser", mode = DBMS, deprecatedBy = "dbms.showCurrentUser" ) Stream<UserManagementProcedures.UserResult> showCurrentUserDeprecated(); @Description( "Show the current user." ) @Procedure( name = "dbms.showCurrentUser", mode = DBMS ) Stream<UserManagementProcedures.UserResult> showCurrentUser(); @Admin @Description( "Clears authentication and authorization cache." ) @Procedure( name = "dbms.security.clearAuthCache", mode = DBMS ) void clearAuthenticationCache(); @Context
    public EnterpriseAuthManager authManager; }### Answer:
@Test public void shouldReturnSecurityContextRoles() { List<UserResult> infoList = procedures.showCurrentUser().collect( Collectors.toList() ); assertThat( infoList.size(), equalTo(1) ); UserResult row = infoList.get( 0 ); assertThat( row.username, equalTo( "pearl" ) ); assertThat( row.roles, containsInAnyOrder( "jammer" ) ); assertThat( row.flags, empty() ); }