AttributeSet { public Map<String, Object> getMap() { Map<String, Object> result = new LinkedHashMap<>(); for (Attribute attr : attributeMap.values()) { result.put(attr.getCoRELinkParam(), attr.getValue()); } return Collections.unmodifiableMap(result); } AttributeSet(Attribute... attributes);  AttributeSet(Collection<Attribute> attributes); void validate(AssignationLevel assignationLevel); AttributeSet filter(Attachment attachment); AttributeSet merge(AttributeSet attributes); Map<String, Object> getMap(); Collection<Attribute> getAttributes(); String[] toQueryParams(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static AttributeSet parse(String uriQueries); static AttributeSet parse(String... queryParams); static AttributeSet parse(Collection<String> queryParams);  }
@Test public void should_get_map() { AttributeSet sut = new AttributeSet(new Attribute(Attribute.OBJECT_VERSION, "1.1"), new Attribute(Attribute.MINIMUM_PERIOD, 5L), new Attribute(Attribute.MAXIMUM_PERIOD, 60L)); Map<String, Object> map = sut.getMap(); assertEquals("1.1", map.get("ver")); assertEquals(5L, map.get("pmin")); assertEquals(60L, map.get("pmax")); }