public void write(MemoryBuffer buffer, Locale l) {
    fury.writeJavaString(buffer, l.getLanguage());
    fury.writeJavaString(buffer, l.getCountry());
    fury.writeJavaString(buffer, l.getVariant());
  }
@Test
  public void testWrite() {
    Fury fury = Fury.builder().withLanguage(Language.JAVA).requireClassRegistration(false).build();
    serDeCheckSerializerAndEqual(fury, Locale.US, "LocaleSerializer");
    serDeCheckSerializerAndEqual(fury, Locale.CHINESE, "LocaleSerializer");
    serDeCheckSerializerAndEqual(fury, Locale.ENGLISH, "LocaleSerializer");
    serDeCheckSerializerAndEqual(fury, Locale.TRADITIONAL_CHINESE, "LocaleSerializer");
    serDeCheckSerializerAndEqual(fury, Locale.CHINA, "LocaleSerializer");
    serDeCheckSerializerAndEqual(fury, Locale.TAIWAN, "LocaleSerializer");
    serDeCheckSerializerAndEqual(fury, Locale.getDefault(), "LocaleSerializer");
  }