### Question:
RequestCacheContextImpl implements RequestCacheContext { @Override public void setAttribute( @Nonnull String name, Object value ) { if ( attributes == null ) { attributes = new HashMap<>(); } attributes.put( name, value ); } RequestCacheContextImpl( RequestCacheServiceImpl service ); @Override void setAttribute( @Nonnull String name, Object value ); @Override T getAttribute( @Nonnull String name, @Nonnull Class<? extends T> valueClass ); @Override void removeAttribute( @Nonnull String name ); @Nonnull @Override CacheManager getCacheManager( @Nonnull String name ); @Override void close();  }### Answer:
@Test public void setAttribute() { context.setAttribute( "test1", "Value1" ); Assert.assertEquals( "Value1", context.getAttribute( "test1", String.class ) ); }