KeyValuePair implements NameValuePair { @Override public String toString() { return "key [" + key + "] value [" + value + "]"; } KeyValuePair();  KeyValuePair(String key, String value); @Override void setKey(String key); @Override String getKey(); @Override void setValue(String value); @Override String getValue(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void testToString() { assertNotNull(pair1.toString()); assertNotNull(pair2.toString()); assertNotNull(new KeyValuePair().toString()); }