### Question:
RDFJSONParser extends AbstractRDFParser { @Override public void parse(final InputStream in, final String baseURI) throws RDFParseException, RDFHandlerException { if ( in == null ) { throw new NullPointerException("null input stream"); } if ( baseURI == null ) { throw new NullPointerException("null base URI"); } parse(new InputStreamReader(in, UTF_8), baseURI); }  @Override RDFFormat getRDFFormat(); @Override Collection<RioSetting<?>> getSupportedSettings(); @Override void parse(final InputStream in, final String baseURI); @Override void parse(final Reader reader, final String baseURI);  }### Answer:
@Test void testReportRDFParseException() { assertThatExceptionOfType(RDFParseException.class).isThrownBy(() -> { final RDFJSONParser parser=new RDFJSONParser(); parser.setRDFHandler(new StatementCollector()); parser.parse(new StringReader(""), ""); }); }