arquillian using a random port with tomcat7 embeded <p>I'd like to use a random port for arquillian. So in arquillian.xml I do:</p> <pre><code> &lt;arquillian&gt; &lt;container qualifier="tomcat7" default="true"&gt; &lt;configuration&gt; ... &lt;property name="bindHttpPort"&gt;0&lt;/property&gt; ... &lt;/configuration&gt; &lt;/container&gt; &lt;/arquillian&gt; </code></pre> <p>In my unit test:</p> <pre><code>@ArquillianResource private URL base; </code></pre> <p>I hope to have the real port (localPort) used by Apache Tomcat (because yes it start with a random port) but this URL is with 0 port the one from configuration not random one.</p> <p>So how to have access to this?</p>