KeyPair implements Serializable { @Override public String toString() { return key + " = " + value; } KeyPair();  KeyPair(String key, String value); String getKey(); void setKey(String key); String getValue(); void setValue(String value); @Override String toString();  }
@Test public void testToString_1() throws Exception { KeyPair fixture = new KeyPair("", ""); String result = fixture.toString(); assertEquals(" = ", result); }