ViewScope implements Scope { @Override @Nullable public Object resolveContextualObject(String key) { return new FacesRequestAttributes(getFacesContext()).resolveReference(key); }  @Override Object get(String name, ObjectFactory objectFactory); @Override @Nullable Object remove(String name); @Override @Nullable String getConversationId(); @Override void registerDestructionCallback(String name, Runnable callback); @Override @Nullable Object resolveContextualObject(String key); static final String SCOPE_VIEW; static final String DESTRUCTION_CALLBACK_NAME_PREFIX; }
@Test public void testResolveContextualObject() { assertThat(this.viewScope.resolveContextualObject(KEY)).isNull(); }