### Question:
ViewResult implements Iterable<ViewResult.Row>, Serializable { public int getSize() { return rows.size(); } ViewResult(JsonNode resultNode, boolean ignoreNotFound); List<Row> getRows(); int getSize(); int getOffset(); int getTotalRows(); long getUpdateSeq(); boolean isUpdateSeqNumeric(); String getUpdateSeqAsString(); @JsonProperty(UPDATE_SEQ) void setUpdateSeq(String updateSeq); Iterator<ViewResult.Row> iterator(); boolean isEmpty(); @Override String toString();  }### Answer:
@Test public void error_field_in_result_docment_should_not_cause_exception() throws Exception { ViewResult result = null; try { result = readResult("impl/view_result_with_nested_error.json"); } catch (ViewResultException e) { fail("nested error field should cause ViewResultException"); } assertEquals(2, result.getSize()); }