final String key = "foo";
final String value = "bar";
final String sessionId1 = post( _httpClient, _portTomcat1, null, key, value ).getSessionId();
assertNotNull( sessionId1, "No session created." );
Response response = get( _httpClient, _portTomcat1, sessionId1 );
assertEquals( response.getSessionId(), sessionId1 );
assertEquals( response.get( key ), value );
final Map<String, String> params = asMap( PARAM_REMOVE, key );
response = get( _httpClient, _portTomcat1, "/", sessionId1, params );
assertEquals( response.getSessionId(), sessionId1 );
assertNull( response.get( key ) );
// also the next request must not include this session attribute
response = get( _httpClient, _portTomcat1, sessionId1 );
assertEquals( response.getSessionId(), sessionId1 );
assertNull( response.get( key ) );
}