Header { @XmlTransient public String getValue() { String value = ""; try { value = new String(valueBytes, UTF_8); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return value; } Header(@Nonnull String key, @Nonnull String value); protected  Header(); String getKey(); void setKey(String key); @XmlTransient String getValue(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testGetValue_1() throws Exception { Header fixture = new Header("", ""); String result = fixture.getValue(); assertEquals("", result); }