public void testCompareTo() {
ListGenericArray array = new ListGenericArray(Schema.create(Schema.Type.STRING));
boolean stackOverflowError = false;
array.add(new Utf8("array comparison test"));
try {
int compareTo = array.compareTo(array);
} catch (StackOverflowError e) {
stackOverflowError = true;
}
Assert.assertFalse(stackOverflowError);
}