### Question:
Attribute implements Map.Entry<String, String>, Cloneable { public String html() { return key + "=\"" + Entities.escape(value, (new Document("")).outputSettings()) + "\""; } Attribute(String key, String value); String getKey(); void setKey(String key); String getValue(); String setValue(String value); String html(); String toString(); static Attribute createFromEncoded(String unencodedKey, String encodedValue); @Override boolean equals(Object o); @Override int hashCode(); @Override Attribute clone();  }### Answer:
@Test public void html() { Attribute attr = new Attribute("key", "value &"); assertEquals("key=\"value &amp;\"", attr.html()); assertEquals(attr.html(), attr.toString()); }