@Test
    public void testWrongVersion() {
        assertCommandThrows(JsonProcessingException.class, "{\"version\":\"string\"}");
        assertCommandThrows(AdminOperationException.class, "{\"version\":2}");
    }
Unit test of {@link DeleteRecordsCommand} tool.
tools/src/test/java/org/apache/kafka/tools/DeleteRecordsCommandTest.java