private void assertCreatePutFails(String tensor, String name, String msg) {
        try {
            createPutWithTensor(inputJson(tensor), name);
            fail("Expected exception");
        } catch (IllegalArgumentException e) {
            assertTrue(Exceptions.toMessageString(e).contains(msg));
        }
    }
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