in src/main/java/org/apache/sling/testing/email/impl/SmtpServerWrapper.java [60:74]
public void activate(Config cfg) throws ReflectiveOperationException {
int bindPort;
synchronized (sync) {
wiser = new Wiser();
wiser.setPort(cfg.bind_port());
wiser.start();
bindPort = cfg.bind_port() == 0 ? reflectiveGetEffectiveBindPort(wiser.getServer()) : cfg.bind_port();
}
effectiveBindPort = bindPort;
logger.info("Started, Wiser listening on port {}", effectiveBindPort);
}