INT-2884: Refactor Stream Tests to Use Mocks

Avoid hijacking stdout, stderr because the tests failed
when logging was enabled.
Merge pull request #721 from artembilan/INT-2884
INT-2907: Upgrade to Gradle 1.4

JIRA: https://jira.springsource.org/browse/INT-2907
INT-2913 Fix Looping Mail Tests

Causes excessive CPU utilization and OOM Errors with
Gradle 1.4 (and 1.2 on some platforms).

Stop adapters when tests complete.
Merge pull request #725 from artembilan/INT-2907