MetadataElement implements NameValuePair, Cloneable { @Override public String getKey() { return key; } MetadataElement();  MetadataElement(KeyValuePair kp);  MetadataElement(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(); @Override Object clone();  }
@Test public void testGetKey() { assertTrue("key1".equals(me1.getKey())); }