### Question:
OutputFormatXmlAdapter extends XmlAdapter<ClientReportJobOutputFormatsWrapper, Set<OutputFormat>> { @Override public ClientReportJobOutputFormatsWrapper marshal(Set<OutputFormat> v) throws Exception { ClientReportJobOutputFormatsWrapper result = null; if (v != null && !v.isEmpty()) { Set<String> set = new HashSet<String>(); for (OutputFormat currentValue : v) { String currentStringValue = currentValue.name(); set.add(currentStringValue); } result = new ClientReportJobOutputFormatsWrapper(); result.setFormats(set); } return result; }  @Override Set<OutputFormat> unmarshal(ClientReportJobOutputFormatsWrapper v); @Override ClientReportJobOutputFormatsWrapper marshal(Set<OutputFormat> v);  }### Answer:
@Test public void marshal_nullValue_nullValue() throws Exception { ClientReportJobOutputFormatsWrapper actual = objectUnderTest.marshal(null); assertNull(actual); }
@Test public void marshal_empty_nullValue() throws Exception { ClientReportJobOutputFormatsWrapper actual = objectUnderTest.marshal(new HashSet<OutputFormat>()); assertNull(actual); }
@Test public void marshal_someFormats_wrapper() throws Exception { ClientReportJobOutputFormatsWrapper expected = createClientReportJobOutputFormatsWrapperWithFormats(); ClientReportJobOutputFormatsWrapper actual = objectUnderTest.marshal(TEST_FORMATS); assertEquals(expected, actual); }