Attribute implements Serializable { @Override public String toString() { return name + " = " + value; } Attribute();  Attribute(String name, String value); String getName(); void setName(String name); String getValue(); void setValue(String value); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testToString_1() throws Exception { Attribute fixture = new Attribute("", ""); String result = fixture.toString(); assertEquals(" = ", result); }