@Override
    public List<Integer> getExposedPorts() {
        List<Integer> exposedPorts = new ArrayList<>();
        for (ExposedPort exposedPort : this.containerDef.getExposedPorts()) {
            exposedPorts.add(exposedPort.getPort());
        }
        return exposedPorts;
    }
@deprecated use {@link #GenericContainer(DockerImageName)} instead
core/src/main/java/org/testcontainers/containers/GenericContainer.java