AuthInfoImpl implements AuthInfo { @Override public Object getAttribute(String attributeName) { return attributes.get(attributeName); } AuthInfoImpl(@Nullable String userID, @Nullable Map<String, ?> attributes,
                        @Nullable Set<? extends Principal> principals);  AuthInfoImpl(@Nullable String userID, @Nullable Map<String, ?> attributes,
                        @Nullable Iterable<? extends Principal> principals); static AuthInfo createFromSubject(@NotNull Subject subject); @Override String toString(); @Override String getUserID(); @NotNull @Override String[] getAttributeNames(); @Override Object getAttribute(String attributeName); @NotNull @Override Set<Principal> getPrincipals();  }
@Test public void testGetAttribute() { for (String attrName : ATTRIBUTES.keySet()) { assertEquals(ATTRIBUTES.get(attrName), authInfo.getAttribute(attrName)); } }