Added test case demonstrating that GRADLE-2674 now works as expected.

+review REVIEW-5257