I have simple integration test
@Test public void shouldReturnErrorMessageToAdminWhenCreatingUserWithUsedUserName()
String body = mockMvc.perform(bla... bla).andReturn().getResolvedException().getMessage()
This should give you the body of the response. "Username already taken" in your case.