### Question:
BeanResolver implements Resolver { @Override public Object get(final Object object, final Object element) { try { final Object value = delegate.getValue(context, object, element); if (context.isPropertyResolved()) { return 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 shouldReturnValueOfProperty() throws Exception { BeanResolver resolver = new BeanResolver(); final JavaBean bean = new JavaBean("OpenIG", true, 42); assertThat(resolver.get(bean, "name")).isEqualTo("OpenIG"); assertThat(resolver.get(bean, "bool")).isEqualTo(TRUE); assertThat(resolver.get(bean, "number")).isEqualTo(42); }
@Test public void shouldReturnUnresolvedForMissingProperty() throws Exception { BeanResolver resolver = new BeanResolver(); final JavaBean bean = new JavaBean("OpenIG", true, 42); assertThat(resolver.get(bean, "missing")).isEqualTo(Resolver.UNRESOLVED); }