### Question:
ExcludeDaysXmlAdapter extends XmlAdapter<ClientExcludeDaysWrapper, ArrayList<Calendar>> { @Override public ClientExcludeDaysWrapper marshal(ArrayList<Calendar> v) throws Exception { ClientExcludeDaysWrapper result = null; if(v != null && !v.isEmpty()){ List<String> dayStrings = new ArrayList<String>(); for (Calendar currentCalendar : v){ dayStrings.add(format.format(currentCalendar.getTime())); } result = new ClientExcludeDaysWrapper(dayStrings); } return result; }  @Override ArrayList<Calendar> unmarshal(ClientExcludeDaysWrapper v); @Override ClientExcludeDaysWrapper marshal(ArrayList<Calendar> v);  }### Answer:
@Test public void marshal_nullValue_nullValue() throws Exception { ClientExcludeDaysWrapper actual = objectUnderTest.marshal(null); assertNull(actual); }
@Test public void marshal_empty_nullValue() throws Exception { ClientExcludeDaysWrapper actual = objectUnderTest.marshal(new ArrayList<Calendar>()); assertNull(actual); }
@Test public void marshal_someAddress_wrapper() throws Exception { ClientExcludeDaysWrapper expected = createClientExcludeDaysWrapperWithDays(); ClientExcludeDaysWrapper actual = objectUnderTest.marshal((ArrayList<Calendar>) createCalendars()); assertEquals(expected, actual); }