### Question:
AttributeSet extends AbstractSet<TypedName<?>> implements Serializable { public static AttributeSet create(TypedName<?>... names) { return create(Arrays.asList(names)); } AttributeSet(TypedName<?>[] ans); static AttributeSet create(TypedName<?>... names); static AttributeSet create(List<? extends TypedName<?>> names); int lookup(TypedName<?> name); int lookup(TypedName<?> name, boolean matchSubclasses); int lookup(String name); TypedName<?> getAttribute(int idx); @Override Iterator<TypedName<?>> iterator(); @Override boolean contains(Object o); @Override int size(); Set<String> nameSet();  }### Answer:
@Test public void testInternCache() { AttributeSet attrs = AttributeSet.create(CommonAttributes.ENTITY_ID, CommonAttributes.USER_ID, CommonAttributes.ITEM_ID); AttributeSet a2 = AttributeSet.create(CommonAttributes.ENTITY_ID, CommonAttributes.USER_ID, CommonAttributes.ITEM_ID); assertThat(a2, sameInstance(attrs)); }