### Question:
CachingJaxbBindingFactory implements JaxbBindingFactory { JAXBContext getOrCreateContext(Class<?> boundClass) { return cachedContexts.computeIfAbsent( boundClass, c -> { try { return JAXBContext.newInstance(c); } catch (JAXBException e) { throw new UncheckedJaxbException(e); } }); } CachingJaxbBindingFactory(); @Override Marshaller createMarshaller(Class<?> boundClass); @Override Unmarshaller createUnmarshaller(Class<?> boundClass);  }### Answer:
@Test void cachesContextsForSameType() { var factory = new CachingJaxbBindingFactory(); assertSame(factory.getOrCreateContext(Course.class), factory.getOrCreateContext(Course.class)); }