private void assertParserErrorMatches(String expectedError, String... json) {
        String jsonData = inputJson(json);
        try {
            new JsonReader(types, jsonToInputStream(jsonData), parserFactory).next();
            fail();
        } catch (JsonReaderException e) {
            assertEquals(expectedError, Exceptions.toMessageString(e));
        }
    }
Tests parsing of various tensor values set at the root, i.e. no 'cells', 'blocks' or 'values'
document/src/test/java/com/yahoo/document/json/JsonReaderTestCase.java