Assert.assertNotNull(bean.location);
Assert.assertEquals(StackTraceBean.NUM, bean.location.getLineNumber());
// and then directly, iff registered
ObjectMapper mapper = new ObjectMapper();
SimpleModule module = new SimpleModule();
module.addDeserializer(StackTraceElement.class, new Jackson429StackTraceElementDeserializer());
mapper.registerModule(module);
StackTraceElement elem = mapper.readValue(
aposToQuotes("{'class':'package.SomeClass','method':'someMethod','file':'SomeClass.java','line':123}"),
StackTraceElement.class);