### Question:
JsonUtf8Reader extends JsonReader { @Override public Token peek() throws IOException { int p = peeked; if (p == PEEKED_NONE) { p = doPeek(); } switch (p) { case PEEKED_BEGIN_OBJECT: return Token.BEGIN_OBJECT; case PEEKED_END_OBJECT: return Token.END_OBJECT; case PEEKED_BEGIN_ARRAY: return Token.BEGIN_ARRAY; case PEEKED_END_ARRAY: return Token.END_ARRAY; case PEEKED_SINGLE_QUOTED_NAME: case PEEKED_DOUBLE_QUOTED_NAME: case PEEKED_UNQUOTED_NAME: case PEEKED_BUFFERED_NAME: return Token.NAME; case PEEKED_TRUE: case PEEKED_FALSE: return Token.BOOLEAN; case PEEKED_NULL: return Token.NULL; case PEEKED_SINGLE_QUOTED: case PEEKED_DOUBLE_QUOTED: case PEEKED_UNQUOTED: case PEEKED_BUFFERED: return Token.STRING; case PEEKED_LONG: case PEEKED_NUMBER: return Token.NUMBER; case PEEKED_EOF: return Token.END_DOCUMENT; default: throw new AssertionError(); } } JsonUtf8Reader(BufferedSource source);   JsonUtf8Reader(JsonUtf8Reader copyFrom); @Override void beginArray(); @Override void endArray(); @Override void beginObject(); @Override void endObject(); @Override boolean hasNext(); @Override Token peek(); @Override String nextName(); @Override int selectName(Options options); @Override void skipName(); @Override String nextString(); @Override int selectString(Options options); @Override boolean nextBoolean(); @Override @Nullable T nextNull(); @Override double nextDouble(); @Override long nextLong(); @Override int nextInt(); @Override void close(); @Override void skipValue(); @Override BufferedSource nextSource(); @Override JsonReader peekJson(); @Override String toString(); @Override void promoteNameToValue();  }### Answer:
@Test public void stringEndingInSlash() throws IOException { JsonReader reader = newReader("/"); reader.setLenient(true); try { reader.peek(); fail(); } catch (JsonEncodingException expected) { } }
@Test public void documentWithCommentEndingInSlash() throws IOException { JsonReader reader = newReader("/"); reader.setLenient(true); try { reader.peek(); fail(); } catch (JsonEncodingException expected) { } }
@Test public void stringWithLeadingSlash() throws IOException { JsonReader reader = newReader("/x"); reader.setLenient(true); try { reader.peek(); fail(); } catch (JsonEncodingException expected) { } }