As Sotirios pointed out, model().attribute("attributeName")
wont allow you to navigate and it will use the whole thing as a name.
However you can use this method instead:
public <T> ResultMatcher attribute(final String name, final Matcher<T> matcher)
This will allow you to specify a Hamcrest matcher to match agains your attributes like:
.andExpect(model().attribute("emailInfo", hasProperty("email", is("currentMember@example.com"))))
Just make sure you have the Hamcrest library in your classpath and import it like:
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*
Note: To import is specially important if you are using Groovy for your tests (Spock) as the method names in Hamcrest conflict with the Groovy standard library