@Test
public void testCharSequenceSerialization() {

    final CharSequence sequence ="foobarbaz".subSequence(3, 6);
    final CharSquenceTestClass obj = new CharSquenceTestClass(sequence);
    final String actual = B2Json.toJsonOrThrowRuntime(obj);
    final String expected = "{\n" +
            "  \"sequence\": \"bar\"\n" +
            "}";
    assertEquals(expected, actual);
}