3131import java .security .cert .CertificateException ;
3232import java .util .ArrayList ;
3333import java .util .HashMap ;
34+ import java .util .LinkedHashMap ;
3435import java .util .List ;
3536import java .util .Map ;
3637
@@ -524,7 +525,7 @@ public void testProcessResponse() throws Exception {
524525 when (request .getParameterMap ()).thenReturn (singletonMap ("SAMLResponse" , new String []{samlResponseEncoded }));
525526 Auth auth2 = new Auth (settings , request , response );
526527
527- HashMap <String , List <String >> expectedAttributes = new HashMap <String , List <String >>();
528+ HashMap <String , List <String >> expectedAttributes = new LinkedHashMap <String , List <String >>();
528529 List <String > attrValues = new ArrayList <String >();
529530 attrValues .add ("smartin" );
530531 List <String > attrValues2 = new ArrayList <String >();
@@ -538,9 +539,9 @@ public void testProcessResponse() throws Exception {
538539 attrValues5 .add ("Martin2" );
539540 expectedAttributes .put ("uid" , attrValues );
540541 expectedAttributes .put ("mail" , attrValues2 );
541- expectedAttributes .put ("eduPersonAffiliation" , attrValues3 );
542542 expectedAttributes .put ("cn" , attrValues4 );
543543 expectedAttributes .put ("sn" , attrValues5 );
544+ expectedAttributes .put ("eduPersonAffiliation" , attrValues3 );
544545 List <String > keys = new ArrayList <String >(expectedAttributes .keySet ());
545546
546547 assertFalse (auth2 .isAuthenticated ());
0 commit comments