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