@Test
public void shouldCreateACorrectlyFormedJmxUrl() throws Exception {

    final String host = "localhost";
    final int port = 9009;
    final JMXServiceURL jmxServiceURL = jmxUrlFactory.createUrl(host, port);
    assertThat(jmxServiceURL.toString(), is("service:jmx:remote+http://localhost:9009"));
}