### Question:
MapResolver extends AbstractResolver { @SuppressWarnings("rawtypes") @Override public Object resolve(Object contextObject, String name, ResolutionContext context) { if (contextObject == null) { return null; } if (contextObject instanceof Map) { Map map = (Map) contextObject; return map.get(name); } if (contextObject instanceof Mapper) { Mapper mapper = (Mapper) contextObject; return mapper.get(name); } return null; } MapResolver();  MapResolver(int priority); @SuppressWarnings("rawtypes") @Override Object resolve(Object contextObject, String name,
            ResolutionContext context); @Override Hint createHint(Object contextObject, String name,
            ResolutionContext context); static final int MAP_RESOLVER_PRIORITY; }### Answer:
@Test public void testResolution() { MapResolver resolver = new MapResolver(); assertNull(resolver.resolve(null, "foo", null)); assertNotNull( resolver.resolve(ImmutableMap.of("bar", "baz"), "bar", null)); assertNull( resolver.resolve(ImmutableMap.of("bar", "baz"), "qux", null)); }