### Question:
ReportJobSourceParametersXmlAdapter extends XmlAdapter<ClientReportParametersMapWrapper, Map<String, String[]>> { @Override public Map<String, String[]> unmarshal(ClientReportParametersMapWrapper v) throws Exception { Map<String, String[]> result = null; if (v != null) { final HashMap<String, String[]> parameterValues = v.getParameterValues(); if (parameterValues != null && !parameterValues.isEmpty()) { result = new HashMap<String, String[]>(); for (String currentKey : parameterValues.keySet()) { String[] currentValue = parameterValues.get(currentKey); result.put(currentKey, currentValue); } } } return result; }  @Override ClientReportParametersMapWrapper marshal(Map<String, String[]> v); @Override Map<String, String[]> unmarshal(ClientReportParametersMapWrapper v);  }### Answer:
@Test public void unmarshal_nullValue_nullValue() throws Exception { Map<String, String[]> actual = objectUnderTest.unmarshal(null); assertNull(actual); }
@Test public void unmarshal_wrapperWithNullParameters_nullValue() throws Exception { ClientReportParametersMapWrapper wrapper = createClientReportParametersMapWrapperWithNullParameters(); Map<String, String[]> actual = objectUnderTest.unmarshal(wrapper); assertNull(actual); }
@Test public void unmarshal_wrapperWithoutParameters_nullValue() throws Exception { ClientReportParametersMapWrapper wrapper = createClientReportParametersMapWrapperWithoutParameters(); Map<String, String[]> actual = objectUnderTest.unmarshal(wrapper); assertNull(actual); }
@Test public void unmarshal_wrapperWithSomeParameters_SomeParameters() throws Exception { ClientReportParametersMapWrapper wrapper = createClientReportParametersMapWrapperWithParameters(); Map<String, String[]> actual = objectUnderTest.unmarshal(wrapper); assertEquals(TEST_PARAMETER_VALUES, actual); }