@Override
    public JMXReporter createMetricReporter(Properties properties) {
        String portsConfig = properties.getProperty(ARG_PORT);
        return new JMXReporter(portsConfig);
    }
@Test
    void testWithoutArgument() {
        JMXReporter metricReporter =
                new JMXReporterFactory().createMetricReporter(new Properties());

        try {
            assertThat(metricReporter.getPort()).isEmpty();
        } finally {
            metricReporter.close();
        }
    }