protected void assertConsumable(Parser parser, String... expectedTokens) {
        for (String expectedToken : expectedTokens) {
            if (!Utils.isBlank(expectedToken)) {
                int position = parser.mark();
                assertTrue(parser.canConsume(expectedToken.trim()));
                parser.rewindTo(position);
                assertTrue(parser.canConsume(expectedToken.trim(), true));
                parser.rewindTo(position);
                assertTrue(parser.canConsume(expectedToken, false));
            }
        }
    }
Test parsing distinct number-like types (strings containing numbers, and logical Decimals) in the same list
The parser does not convert Numbers to Decimals, or Strings containing numbers to Numbers automatically.
connect/api/src/test/java/org/apache/kafka/connect/data/ValuesTest.java