String expectedJsonExpr = JSONTestHelper.getResourceAsString(PKG_NAME, jsonExprFilename);
Marshaller marshaller = jaxbContext.createMarshaller();
StringWriter resultWriter = new StringWriter();
JsonFactory jsonFactory = new JsonFactory();
JsonGenerator jsonGenerator = jsonFactory.createJsonGenerator(resultWriter);
final Stax2JacksonWriter writer = configuration != null
? new Stax2JacksonWriter(jsonGenerator, configuration, clazz, jaxbContext) : new Stax2JacksonWriter(jsonGenerator, clazz, jaxbContext);
marshaller.marshal(jaxbBean, writer);