### Question:
ComponentMetadata { public Collection<ComponentAttribute> attributes() { return Collections.unmodifiableCollection(attributes); } ComponentMetadata(); private  ComponentMetadata(final Collection<ComponentAttribute> attributes); Collection<ComponentAttribute> attributes(); void addAttribute(final ComponentAttribute attribute); Collection<ComponentAttribute> attributesForName(final String name); Optional<Object> value(final String name, final String member); Collection<Object> values(final String name, final String member); Collection<String> stringValues(final String name, final String member); String stringValue(final String name, final String member); String[] arrayValue(final String name, final String member); boolean contains(final String name, final String member, Object value);  }### Answer:
@Test public void shouldGetAllAttributes() { assertEquals(3, metadata.attributes().size()); }