### Question:
ParserWrapper implements Parser { @Override public boolean isEndOfArray() { return jsonParser.hasToken(JsonToken.END_ARRAY); } ParserWrapper(JsonFactory jsonFactory, InputStream inputStream); @Override boolean hasCurrentToken(); @Override boolean isEndOfObject(); @Override boolean isEndOfArray(); @Override void moveToNextToken(); @Override void moveToNextValue(); @Override void skipChildren(); @Override String getFieldName(); @Override Boolean getBoolean(); @Override String getString(); @Override Integer getInteger(); @Override Long getLong(); @Override Double getDouble(); @Override BigDecimal getDecimal(); @Override Instant getInstant(); @Override T getEnum(Class<T> enumClass); @Override void close();  }### Answer:
@Test @DisplayName("Check end of JSON array") void isEndOfArrayTest() { when(jsonParser.hasToken(JsonToken.END_ARRAY)).thenReturn(true); boolean result = unit.isEndOfArray(); assertThat(result).isTrue(); }