### Question:
MBeanSelector { public String getUrl(Protocol protocol, String host, int port) { return protocol.format(queryType.getUrlPattern(), host, port); } private  MBeanSelector(Map<String, Object> map); private  MBeanSelector(MBeanSelector first, MBeanSelector second); static MBeanSelector create(Map<String, Object> map); String getPrintableRequest(); String getRequest(); String getUrl(Protocol protocol, String host, int port); QueryType getQueryType();  }### Answer:
@Test public void domainNameSelector_selectsConfigurationUrl() { assertThat(MBeanSelector.DOMAIN_NAME_SELECTOR.getUrl(Protocol.HTTP, "myhost", 1234), equalTo(String.format(QueryType.CONFIGURATION_URL_PATTERN, "http", "myhost", 1234))); }