protected void validateHttpHeaderApplicationUser(String expectedUserId,String expectedFirstName,String expectedLastName,String expectedEmail,String expectedRole,String expectedSessionInitTime,String[] expectedFunctions,Set<NamespaceAuthorization> expectedNamespaceAuthorizations) throws Exception {
  Set<String> roles=new HashSet<>();
  if (expectedRole != null) {
    roles.add(expectedRole);
  }
  validateHttpHeaderApplicationUser(expectedUserId,expectedFirstName,expectedLastName,expectedEmail,roles,expectedSessionInitTime,expectedFunctions,expectedNamespaceAuthorizations);
}

protected void validateHttpHeaderApplicationUser ( String expectedUserId , String expectedFirstName , String expectedLastName , String expectedEmail , String expectedRole , String expectedSessionInitTime , String [ ] expectedFunctions , Set < NamespaceAuthorization > expectedNamespaceAuthorizations ) throws Exception { Set < String > roles = new HashSet < > ( ) ; if ( expectedRole != null ) { roles . add ( expectedRole ) ; } validateHttpHeaderApplicationUser ( expectedUserId , expectedFirstName , expectedLastName , expectedEmail , roles , expectedSessionInitTime , expectedFunctions , expectedNamespaceAuthorizations ) ; }
delegates to validatehttpheaderapplicationuser ( string , string , string , string , set , string ) with a single role .
