### Question:
WMCUtilities { public static MapContext getMapContext(InputStream source) throws JAXBException { final MarshallerPool pool = getMarshallerPool(); final Unmarshaller um = pool.acquireUnmarshaller(); Object o = um.unmarshal(source); if (o instanceof JAXBElement) { o = ((JAXBElement) o).getValue(); } ViewContextType root = (ViewContextType) o; final MapContext context = getMapContext(root); pool.recycle(um); return context; }  static String getServiceId(String source); static MarshallerPool getMarshallerPool(); static MapContext getMapContext(InputStream source); static MapContext getMapContext(ViewContextType root);  }### Answer:
@Test public void testGetMapContext() throws Exception { MapContext context = WMCUtilities.getMapContext(this.getClass().getResourceAsStream("testWMC_wms.xml")); assertNotNull(context); }