### Question:
AddressesXmlAdapter extends XmlAdapter<ClientAddressesListWrapper, List<String>> { @Override public List<String> unmarshal(ClientAddressesListWrapper v) throws Exception { return v != null ? v.getAddresses() : null; }  @Override List<String> unmarshal(ClientAddressesListWrapper v); @Override ClientAddressesListWrapper marshal(List<String> v);  }### Answer:
@Test public void unmarshal_nullValue_nullValue() throws Exception { List<String> actual = objectUnderTest.unmarshal(null); assertNull(actual); }
@Test public void unmarshal_wrapperWithoutAddresses_nullValue() throws Exception { ClientAddressesListWrapper wrapper = createClientAddressesListWrapperWithoutAddresses(); List<String> actual = objectUnderTest.unmarshal(wrapper); assertNull(actual); }
@Test public void unmarshal_wrapperWithSomeAddresses_someAddresses() throws Exception { ClientAddressesListWrapper wrapper = createClientAddressesListWrapperWithAddresses(); List<String> actual = objectUnderTest.unmarshal(wrapper); assertEquals(TEST_ADDRESSES, actual); }