### Question:
CharArrayAdapter extends XmlAdapter<String, char[]> { @Override public String marshal(char[] chars) { return chars == null ? null : String.valueOf(chars); }  @Override char[] unmarshal(String s); @Override String marshal(char[] chars);  }### Answer:
@Test public void marshal() { char[] chars = new char[]{'s','o','m','e'}; assertThat(charArrayAdapter.marshal(chars)).isEqualTo("some"); }
@Test public void marshalNull() { assertThat(charArrayAdapter.marshal(null)).isNull(); }