FacetConceptsMarshaller { public final FacetConcepts unmarshal(Source source) throws JAXBException { Unmarshaller unmarshaller = jc.createUnmarshaller(); return (FacetConcepts) unmarshaller.unmarshal(source); } FacetConceptsMarshaller(); final void marshal(FacetConcepts concepts, Result result); final FacetConcepts unmarshal(Source source);  }
@Test public void testUnmarshal() throws Exception { final Source source = new StreamSource(getClass().getResourceAsStream("/facetConcepts-test.xml")); final FacetConceptsMarshaller instance = new FacetConceptsMarshaller(); final FacetConcepts result = instance.unmarshal(source); assertEquals(25, result.getFacetConcept().size()); final FacetConcept concept = result.getFacetConcept().get(3); assertEquals("projectName", concept.getName()); assertEquals("The project within which the resource or tool was created", concept.getDescription()); }