private boolean hasSessionProtocol(SessionProtocol protocol) {
        final Server server = this.server.get();
        return server != null &&
               server.activePorts().values().stream()
                     .anyMatch(port -> port.hasProtocol(protocol));
    }
Returns {@code true} if the {@link Server} is started and it has an HTTPS port open.
junit5/src/main/java/com/linecorp/armeria/internal/testing/ServerRuleDelegate.java