AcknowledgeType acknowledgeType() {
        if (options.has(rejectOpt)) {
            return AcknowledgeType.REJECT;
        } else if (options.has(releaseOpt)) {
            return AcknowledgeType.RELEASE;
        } else {
            return AcknowledgeType.ACCEPT;
        }
    }
@Test
    public void testReleaseOption() throws IOException {
        String[] args = new String[]{
            "--bootstrap-server", "localhost:9092",
            "--topic", "test",
            "--release"
        };

        ConsoleShareConsumerOptions config = new ConsoleShareConsumerOptions(args);
        assertEquals(AcknowledgeType.RELEASE, config.acknowledgeType());
    }