HashSet<Object> credentials = new HashSet<Object>();
credentials.add(publicCred);
credentials.add(privateCred);
AuthenticationRequest authRequest = new AuthenticationRequestImpl.Builder(user, credentials).build();
assertTrue(securityContext.compareTo(authRequest));
credentials = new HashSet<Object>();
credentials.add("public-modified-secret".getBytes());
authRequest = new AuthenticationRequestImpl.Builder(user, credentials).build();