public void testPartialBean() throws Exception
{
ObjectMapper mapper = new ObjectMapper();
AbstractTypeMaterializer mat = new AbstractTypeMaterializer();
// ensure that we will only get deferred error methods
mat.disable(AbstractTypeMaterializer.Feature.FAIL_ON_UNMATERIALIZED_METHOD);
mapper.registerModule(new MrBeanModule(mat));
PartialBean bean = mapper.readValue("{\"ok\":true}", PartialBean.class);
assertNotNull(bean);
assertTrue(bean.isOk());
// and then exception