@Test public void shouldUnmarshal() throws Exception { Unmarshaller unmarshaller = jaxb.createUnmarshaller(); Container container = (Container) unmarshaller.unmarshal(new StringReader(XML)); assertThat(CONTAINER.mapping.toString(), is(equalTo(container.mapping.toString()))); }
@Override public Mapping unmarshal(AdaptedMapping adapted) throws Exception { try { return adapted.toMapping(); } catch (Exception e) { e.printStackTrace(); throw e; } }
JmsMappingAdapter extends XmlAdapter<JmsMappingAdapter.AdaptedMapping, Mapping> { @Override public Mapping unmarshal(AdaptedMapping adapted) throws Exception { try { return adapted.toMapping(); } catch (Exception e) { e.printStackTrace(); throw e; } } }
JmsMappingAdapter extends XmlAdapter<JmsMappingAdapter.AdaptedMapping, Mapping> { @Override public Mapping unmarshal(AdaptedMapping adapted) throws Exception { try { return adapted.toMapping(); } catch (Exception e) { e.printStackTrace(); throw e; } }  }
JmsMappingAdapter extends XmlAdapter<JmsMappingAdapter.AdaptedMapping, Mapping> { @Override public Mapping unmarshal(AdaptedMapping adapted) throws Exception { try { return adapted.toMapping(); } catch (Exception e) { e.printStackTrace(); throw e; } }  @Override AdaptedMapping marshal(Mapping mapping); @Override Mapping unmarshal(AdaptedMapping adapted); }
JmsMappingAdapter extends XmlAdapter<JmsMappingAdapter.AdaptedMapping, Mapping> { @Override public Mapping unmarshal(AdaptedMapping adapted) throws Exception { try { return adapted.toMapping(); } catch (Exception e) { e.printStackTrace(); throw e; } }  @Override AdaptedMapping marshal(Mapping mapping); @Override Mapping unmarshal(AdaptedMapping adapted);  }