### Question:
PathAdapter extends XmlAdapter<String,Path> { @Override public Path unmarshal(final String input) { return (input == null) ? null : Paths.get(input); }  @Override Path unmarshal(final String input); @Override String marshal(final Path input);  }### Answer:
@Test public void unmarshal() { String value = "/somepath/to/someplace"; Path result = pathAdapter.unmarshal(value); assertThat(result).isEqualTo(Paths.get(value)); }
@Test public void unmarshalNull() { Path result = pathAdapter.unmarshal(null); assertThat(result).isNull(); }