@Deprecated
    protected Integer getLivenessCheckPort() {
        // legacy implementation for backwards compatibility
        Iterator<ExposedPort> exposedPortsIterator = this.containerDef.getExposedPorts().iterator();
        if (exposedPortsIterator.hasNext()) {
            return getMappedPort(exposedPortsIterator.next().getPort());
        } else if (!this.containerDef.getPortBindings().isEmpty()) {
            return Integer.valueOf(
                this.containerDef.getPortBindings().iterator().next().getBinding().getHostPortSpec()
            );
        } else {
            return null;
        }
    }
@return the port on which to check if the container is ready
@deprecated see {@link GenericContainer#getLivenessCheckPorts()} for replacement
core/src/main/java/org/testcontainers/containers/GenericContainer.java