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

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