@Test
public void testCharSequenceDeserialization() {

    final String input = "{\n" +
            "  \"sequence\": \"bar\"\n" +
            "}";
    final CharSquenceTestClass obj = B2Json.fromJsonOrThrowRuntime(input, CharSquenceTestClass.class);
    assertEquals("bar", obj.sequence);
    // the underlying implementation of CharSequence that we deserialize is String
    assertEquals(String.class, obj.sequence.getClass());
}