### Question:
JsonReaderImpl implements JsonReader { @Override public JsonArray readArray() { final JsonStructure read = read(); checkType(JsonArray.class, read); return JsonArray.class.cast(read); } JsonReaderImpl(final JsonParser parser, final BufferStrategy.BufferProvider<char[]> bufferProvider);  JsonReaderImpl(final JsonParser parser, boolean subStreamReader,
                          final BufferStrategy.BufferProvider<char[]> bufferProvider); @Override JsonStructure read(); @Override JsonValue readValue(); @Override JsonObject readObject(); @Override JsonArray readArray(); @Override void close();  }### Answer:
@Test(expected = JsonParsingException.class) public void badTypeArray() { Json.createReaderFactory(getFactoryConfig()).createReader(new StringReader("{}")).readArray(); }