INT-2880

INT-2880 fix System.out concurrent race condition

Gradle may run tests via multi-threaded way.
Using shared resources (e.g. `System.out`) may produce concurrency issues.

* Remove usage of `System.out`
* Add mocking around `LoggingHandler#messageLogger`

JIRA: https://jira.springsource.org/browse/INT-2880