@@ -0,0 +1,1137 @@
+package oasis.model.i18n;%0A%0Aimport static org.assertj.core.api.Assertions.*;%0A%0Aimport java.util.Locale;%0A%0Aimport org.junit.Test;%0A%0Aimport com.fasterxml.jackson.annotation.JsonProperty;%0Aimport com.fasterxml.jackson.databind.ObjectMapper;%0Aimport com.fasterxml.jackson.databind.node.ObjectNode;%0A%0Apublic class LocaleJsonSerializationTest %7B%0A  public static class Foo %7B%0A    @JsonProperty Locale locale;%0A  %7D%0A%0A  @Test public void testSerialization() throws Exception %7B%0A    Foo foo = new Foo();%0A    foo.locale = Locale.FRANCE;%0A%0A    ObjectMapper mapper = new ObjectMapper()%0A        .registerModule(new LocalizableModule());%0A    ObjectNode node = mapper.convertValue(foo, ObjectNode.class);%0A%0A    assertThat(node.get(%22locale%22))%0A        .describedAs(mapper.writeValueAsString(foo))%0A        .isEqualTo(mapper.getNodeFactory().textNode(Locale.FRANCE.toLanguageTag()));%0A  %7D%0A%0A  @Test public void testDeserialization() throws Exception %7B%0A    ObjectMapper mapper = new ObjectMapper()%0A        .registerModule(new LocalizableModule());%0A    Foo foo = mapper.readValue(%22%7B%5C%22locale%5C%22: %5C%22en-GB%5C%22%7D%22, Foo.class);%0A%0A    assertThat(foo.locale).isEqualTo(Locale.UK);%0A  %7D%0A%7D%0A

Add unit test for java.util.Locale ser-/deser-ialization to/from JSON.