public static String partitionsToLogString(Collection<TopicIdPartition> partitions, Boolean traceEnabled) {
        if (traceEnabled) {
            return String.format("( %s )", String.join(", ", partitions.toString()));
        }
        return String.format("%s partition(s)", partitions.size());
    }
@Test
    public void testPartitionsToLogStringEmpty() {
        String response = ShareSession.partitionsToLogString(Collections.emptyList(), false);
        assertEquals("0 partition(s)", response);

        response = ShareSession.partitionsToLogString(Collections.emptyList(), true);
        assertEquals("( [] )", response);
    }