### Question:
WebApplicationContextAdapter implements WebApplicationContext { @Override public ServletContext getServletContext() { return this.servletContext; } WebApplicationContextAdapter(ApplicationContext wrapped, ServletContext servletContext); @Override String getId(); @Override @Nonnull String getApplicationName(); @Override @Nonnull String getDisplayName(); @Override long getStartupDate(); @Override ApplicationContext getParent(); @Override @Nonnull AutowireCapableBeanFactory getAutowireCapableBeanFactory(); @Override @Nonnull Environment getEnvironment(); @Override boolean containsBeanDefinition(@Nonnull String beanName); @Override int getBeanDefinitionCount(); @Override @Nonnull String[] getBeanDefinitionNames(); @Override @Nonnull String[] getBeanNamesForType(@Nonnull ResolvableType type); @Override @Nonnull String[] getBeanNamesForType(@Nonnull ResolvableType resolvableType, boolean includeNonSingletons, boolean allowEagerInit); @Override @Nonnull String[] getBeanNamesForType(Class<?> type); @Override @Nonnull String[] getBeanNamesForType(Class<?> type, boolean includeNonSingletons, boolean allowEagerInit); @Override @Nonnull Map<String, T> getBeansOfType(Class<T> type); @Override @Nonnull Map<String, T> getBeansOfType(Class<T> type, boolean includeNonSingletons, boolean allowEagerInit); @Override @Nonnull String[] getBeanNamesForAnnotation(@Nonnull Class<? extends Annotation> annotationType); @Override @Nonnull Map<String, Object> getBeansWithAnnotation(@Nonnull Class<? extends Annotation> annotationType); @Override A findAnnotationOnBean(@Nonnull String beanName, @Nonnull Class<A> annotationType); @Override @Nonnull Object getBean(@Nonnull String name); @Override @Nonnull T getBean(@Nonnull String name, @Nonnull Class<T> requiredType); @Override @Nonnull T getBean(@Nonnull Class<T> requiredType); @Override @Nonnull Object getBean(@Nonnull String name, @Nonnull Object... args); @Override @Nonnull T getBean(@Nonnull Class<T> requiredType, @Nonnull Object... args); @Override @Nonnull ObjectProvider<T> getBeanProvider(@Nonnull Class<T> aClass); @Override @Nonnull ObjectProvider<T> getBeanProvider(@Nonnull ResolvableType resolvableType); @Override boolean containsBean(@Nonnull String name); @Override boolean isSingleton(@Nonnull String name); @Override boolean isPrototype(@Nonnull String name); @Override boolean isTypeMatch(@Nonnull String name, @Nonnull ResolvableType typeToMatch); @Override boolean isTypeMatch(@Nonnull String name, @Nonnull Class<?> typeToMatch); @Override Class<?> getType(@Nonnull String name); @Override Class<?> getType(@Nonnull String name, boolean allowFactoryBeanInit); @Override @Nonnull String[] getAliases(@Nonnull String name); @Override BeanFactory getParentBeanFactory(); @Override boolean containsLocalBean(@Nonnull String name); @Override String getMessage(@Nonnull String code, Object[] args, String defaultMessage, @Nonnull Locale locale); @Override @Nonnull String getMessage(@Nonnull String code, Object[] args, @Nonnull Locale locale); @Override @Nonnull String getMessage(@Nonnull MessageSourceResolvable resolvable, @Nonnull Locale locale); @Override void publishEvent(@Nonnull ApplicationEvent event); @Override void publishEvent(@Nonnull Object event); @Override @Nonnull Resource[] getResources(@Nonnull String locationPattern); @Override @Nonnull Resource getResource(@Nonnull String location); @Override ClassLoader getClassLoader(); @Override ServletContext getServletContext();  }### Answer:
@Test public void testServletContextRetrieval() { assertThat(this.testee.getServletContext()).isSameAs(this.servletContext); }