### Question:
StatementDeserializer extends PrefetchingIterator<Statement> { public Iterator<Neo4jError> errors() { return errors == null ? emptyIterator() : errors.iterator(); } StatementDeserializer( InputStream input ); Iterator<Neo4jError> errors();  }### Answer:
@Test public void shouldTreatEmptyInputStreamAsEmptyStatementList() { byte[] json = new byte[0]; StatementDeserializer de = new StatementDeserializer( new ByteArrayInputStream( json ) ); assertFalse( de.hasNext() ); assertFalse( de.errors().hasNext() ); }