docs: private ExposedPort[] getExposedPorts(String portSpecs, TestContext context) {
          String[] ports = StringUtils.commaDelimitedListToStringArray(portSpecs);
          ExposedPort[] exposedPorts = new ExposedPort[ports.length];
  
          for (int i = 0; i < ports.length; i++) {
              String portSpec = context.replaceDynamicContentInString(ports[i]);
  
              if (portSpec.startsWith("udp:")) {
                  exposedPorts[i] = ExposedPort.udp(Integer.valueOf(portSpec.substring("udp:".length())));
              } else if (portSpec.startsWith("tcp:")) {
                  exposedPorts[i] = ExposedPort.tcp(Integer.valueOf(portSpec.substring("tcp:".length())));
              } else {
                  exposedPorts[i] = ExposedPort.tcp(Integer.valueOf(portSpec));
              }
          }
  
          return exposedPorts;
      }