Marshaller { public synchronized Domains unmarshal(InputStream is) { Preconditions.checkNotNull(is, "InputStream is null!"); try { return unmarshaller.unmarshal(new StreamSource(is), Domains.class).getValue(); } catch (JAXBException e) { throw new RuntimeException(e); } } Marshaller(); synchronized Domains unmarshal(InputStream is);  }
@Test public void testUnmarshalOfSamplesXml() { Marshaller m = new Marshaller(); m.unmarshal(MarshallerTest.class.getResourceAsStream("/samples.xml")); }
@Test public void testUnmarshalOfAtcXml() { Marshaller m = new Marshaller(); m.unmarshal(MarshallerTest.class.getResourceAsStream("/atc.xml")); }