DeferredJMXConnector implements Deferred<JMXConnector> { public String getJMXConnectionURL() { return jmxConnectionURL; } DeferredJMXConnector(String jmxConnectionURL);  DeferredJMXConnector(String              jmxConnectionURL,
                                JMXConnectorBuilder jmxConnectorBuilder); String getJMXConnectionURL(); @Override JMXConnector get(); @Override Class<JMXConnector> getDeferredClass(); @Override String toString();  }
@Test public void shouldSetURL() throws Exception { String url = "service:jmx:rmi: DeferredJMXConnector deferred = new DeferredJMXConnector(url); assertThat(deferred.getJMXConnectionURL(), is(url)); }