public static boolean listenByOther(final int port) {
        Optional<String> optionalPid = getPortOwner(port);
        if (optionalPid.isPresent() && !optionalPid.get().equals(SystemUtils.getCurrentPID())) {
            LOGGER.warn("PID {} is listening on port {}.", optionalPid.get(), port);
            return true;
        } else {
            return false;
        }
    }
@Test
    void listenByOther() throws IOException {
        try (MockedStatic<SystemUtils> systemUtilsMockedStatic = mockStatic(SystemUtils.class)) {
            systemUtilsMockedStatic.when(SystemUtils::getCurrentPID).thenReturn("0");
            systemUtilsMockedStatic.when(SystemUtils::isWindows).thenReturn(true);
            assertDoesNotThrow(() -> RuntimeUtils.listenByOther(9095));

            systemUtilsMockedStatic.when(SystemUtils::isWindows).thenReturn(false);
            assertDoesNotThrow(() -> RuntimeUtils.listenByOther(9095));
        }
        try (MockedStatic<Runtime> runtimeMockedStatic = mockStatic(Runtime.class)) {
            runtimeMockedStatic.when(Runtime::getRuntime).thenThrow(RuntimeException.class);
            assertFalse(RuntimeUtils.listenByOther(9095));
            final Runtime runtime = mock(Runtime.class);
            runtimeMockedStatic.when(Runtime::getRuntime).thenReturn(runtime);
            final Process process = mock(Process.class);
            when(runtime.exec(any(String[].class))).thenReturn(process);
            final String text = "LISTEN xx:" + 9095 + " xx ";
            InputStream stream = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8));
            when(process.getInputStream()).thenReturn(stream);
            assertFalse(RuntimeUtils.listenByOther(9095));
            when(runtime.exec(any(String[].class))).thenReturn(null);
            assertFalse(RuntimeUtils.listenByOther(9095));
        }
        assertFalse(RuntimeUtils.listenByOther(9095));
        assertFalse(RuntimeUtils.listenByOther(99999));
        assertFalse(RuntimeUtils.listenByOther(0));
    }