MULE-7664 Allow size of internal buffer used for copy streams to be customized

- Sense buffer size using mock stub rather than reflection (reflection
is still needed to instantiate class and invoke method, so IMO this
isn’t much better)
- Extract 999 into a local variable used when setting system property
and asserting size using
- Improve javadoc