AuthInfoImpl implements AuthInfo { @NotNull @Override public String[] getAttributeNames() { return attributes.keySet().toArray(new String[0]); } 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 testGetAttributeNames() { String[] attrNames = authInfo.getAttributeNames(); assertArrayEquals(ATTRIBUTES.keySet().toArray(new String[0]), attrNames); }