private void basicTestString(String value) throws IOException {
    DataOutputStream out = getDataOutput();
    DataSerializer.writeString(value, out);
    out.flush();

    DataInput in = getDataInput();
    String value2 = DataSerializer.readString(in);
    assertEquals(value, value2);

  }
Tests data serializing a non-ascii {@link String}
geode-core/src/test/java/org/apache/geode/internal/DataSerializableJUnitTest.java