void () { String s = "hello world"; ByteArrayCharSequence bacs = new ByteArrayCharSequence(s.getBytes(StandardCharsets.UTF_8)); assertEquals(bacs.hashCode(), s.hashCode()); assertEquals(bacs.subSequence(2, 5).hashCode(), s.subSequence(2, 5).hashCode()); assertEquals(bacs.subSequence(2, 7).subSequence(2, 4).hashCode(), s.subSequence(2, 7).subSequence(2, 4).hashCode()); }