@Test
  public void testCharacterObject() throws Exception {
    Character value = (char) ('A' + getRandom().nextInt('Z' - 'A'));

    DataOutputStream out = getDataOutput();
    DataSerializer.writeObject(value, out);
    out.flush();

    DataInput in = getDataInput();
    Character value2 = DataSerializer.readObject(in);
    assertEquals(value, value2);
  }
Tests data serializing a {@link Character} using {@link DataSerializer#writeObject}.
geode-core/src/test/java/org/apache/geode/internal/DataSerializableJUnitTest.java