@Test
  public void testArrayMaxShortLength() throws Exception {
    DataOutputStream out = getDataOutput();
    DataSerializer.writeByteArray(new byte[0xFFFF], out);
    out.flush();

    DataInput in = getDataInput();
    byte[] array = DataSerializer.readByteArray(in);
    assertEquals(0xFFFF, array.length);
  }
Tests data serializing a <code>byte[][]</code> using {@link DataSerializer#writeObjectArray}.
geode-core/src/test/java/org/apache/geode/internal/DataSerializableJUnitTest.java