public Unmarshaller createUnmarshaller(Class<?> clazz) throws JAXBException {
    Unmarshaller unmarshaller = getContext(clazz).createUnmarshaller();
    if (unmarshallerEventHandler != null) {
      unmarshaller.setEventHandler(unmarshallerEventHandler);
    }
    unmarshaller.setSchema(unmashallerSchema);
    return unmarshaller;
  }
@Test
  void buildsUnmarshallerWithDefaultEventHandler() throws Exception {
    JAXBContextFactory factory =
        new JAXBContextFactory.Builder().build();

    Unmarshaller unmarshaller = factory.createUnmarshaller(Object.class);
    assertThat(unmarshaller.getEventHandler()).isNotNull();
  }