Declare variable here. andReturn() returns object, and you don't need to use mocMvc directly in assert. Just use values from this variable