### Question:
CachingJaxbBindingFactory implements JaxbBindingFactory { @Override public Marshaller createMarshaller(Class<?> boundClass) throws JAXBException { return getOrCreateContext(boundClass).createMarshaller(); } CachingJaxbBindingFactory(); @Override Marshaller createMarshaller(Class<?> boundClass); @Override Unmarshaller createUnmarshaller(Class<?> boundClass);  }### Answer:
@Test void marshal() throws Exception { var factory = new CachingJaxbBindingFactory(); var outputBuffer = new StringWriter(); factory.createMarshaller(Course.class).marshal(epicArtCourse, outputBuffer); assertEquals(epicArtCourseXmlUtf8, outputBuffer.toString()); }