### Question:
BeanResolver implements Resolver { @Override public Object put(final Object object, final Object element, final Object value) { try { delegate.setValue(context, object, element, value); } catch (Exception e) { } return UNRESOLVED; } BeanResolver(); @Override Class<?> getKey(); @Override Object get(final Object object, final Object element); @Override Object put(final Object object, final Object element, final Object value);  }### Answer:
@Test public void shouldSetValueOfProperty() throws Exception { BeanResolver resolver = new BeanResolver(); final JavaBean bean = new JavaBean("OpenIG", true, 42); resolver.put(bean, "name", "ForgeRock"); assertThat(bean.getName()).isEqualTo("ForgeRock"); resolver.put(bean, "bool", FALSE); assertThat(bean.isBool()).isFalse(); }
@Test public void shouldNotSetValueOfPropertyBecauseNotWritable() throws Exception { BeanResolver resolver = new BeanResolver(); final JavaBean bean = new JavaBean("OpenIG", true, 42); resolver.put(bean, "number", 404); assertThat(bean.getNumber()).isEqualTo(42); }