SI-3943 Test case for already-fixed Java interop bug

Confirmed that this was fixed in edee27f59.

Review by @paulp