### Question:
RequestCacheContextImpl implements RequestCacheContext { @Override public void removeAttribute( @Nonnull String name ) { if ( attributes != null ) { attributes.remove( name ); } } 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 removeAttribute() { context.setAttribute( "test1", "Value1" ); context.removeAttribute( "test1" ); Assert.assertNull( context.getAttribute( "test1", String.class ) ); }
@Test public void removeAttributeNotExist() { context.removeAttribute( "test1" ); }