public void testValidateUTFOnDataInput() throws Exception
{
for (int i = 0; i < 100; i++)
{
Random random = new Random();
// Random size between 15k and 20K
byte[] bytes = new byte[15000 + RandomUtil.randomPositiveInt() % 5000];
random.getRandom().nextBytes(bytes);
String str = new String(bytes);
// The maximum size the encoded UTF string would reach is str.length * 3 (look at the UTF8 implementation)
testValidateUTFOnDataInputStream(str,