MockMvcRequestSpecBuilder addSessionAttr(String name, Object value) {
        spec.sessionAttr(name, value);
        return this;
    }
MockMvcRequestSpecBuilder addSessionAttr(String name, Object value) {
        spec.sessionAttr(name, value);
        return this;
    }
MockMvcRequestSpecBuilder addSessionAttr ( String name , Object value ) { spec . sessionAttr ( name , value ) ; return this ; }
Set a session attribute.

@param name  the session attribute name
@param value the session attribute value
Set a session attribute .