MessageFormatter formatter() {
        return formatter;
    }
@SuppressWarnings("deprecation")
    @Test
    public void testNewAndDeprecateGroupMetadataMessageFormatter() throws Exception {
        String[] deprecatedGroupMetadataMessageFormatter =
                generateArgsForFormatter("kafka.coordinator.group.GroupMetadataManager$GroupMetadataMessageFormatter");
        assertInstanceOf(kafka.coordinator.group.GroupMetadataManager.GroupMetadataMessageFormatter.class,
                new ConsoleConsumerOptions(deprecatedGroupMetadataMessageFormatter).formatter());

        String[] groupMetadataMessageFormatter =
                generateArgsForFormatter("org.apache.kafka.tools.consumer.GroupMetadataMessageFormatter");
        assertInstanceOf(GroupMetadataMessageFormatter.class,
                new ConsoleConsumerOptions(groupMetadataMessageFormatter).formatter());
    }