What do you think of this example
         
       @Test
        public void testVarCharArrayComparisonWithGreaterThan255NullsinMiddle() {
        String strArr[] = new String[240];
        strArr[0] = "abc";
        strArr[1] = "bcd";
        strArr[2] = null;
        strArr[3] = null;
        strArr[4] = "bcd";
        for(int i = 5; i < strArr.length - 2; i++) {
            strArr[i] = null;
        }
        strArr[strArr.length - 1] = "abc";
        PhoenixArray arr = PArrayDataType.instantiatePhoenixArray(
                PDataType.VARCHAR, strArr);
        byte[] bytes1 = PDataType.VARCHAR_ARRAY.toBytes(arr);
        
        strArr = new String[16];
        strArr[0] = "abc";
        strArr[1] = "bcd";
        strArr[2] = null;
        strArr[3] = null;
        strArr[4] = "bcd";
        strArr[strArr.length - 1] = "abc";
        arr = PArrayDataType.instantiatePhoenixArray(
                PDataType.VARCHAR, strArr);
        byte[] bytes2 = PDataType.VARCHAR_ARRAY.toBytes(arr);
        assertTrue(Bytes.compareTo(bytes1, bytes2) < 0);
    }