andDo method
Runs action with the result, for example to log the response while
writing a test: .andDo((result) => log.info(result.response.bodyText)).
Spring's andDo(print()).
Implementation
ResultActions andDo(void Function(MvcResult result) action) =>
ResultActions._(
_result.then((result) {
action(result);
return result;
}),
);