Does anybody have any tips, or does anybody know how I can test the \"error message\" returned by the HTTP response object?
@Autowired private WebApplicationCont
it works for me:
.andExpect( status().reason( "invalid.duplicate" ) )