SearchHandler extends JsonRequestHandler<JmxSearchRequest> { @Override public boolean handleAllServersAtOnce(JmxSearchRequest pRequest) { return true; } SearchHandler(Restrictor pRestrictor); @Override RequestType getType(); @Override @SuppressWarnings("PMD.ReplaceHashtableWithMap") Object doHandleRequest(MBeanServerExecutor serverManager, JmxSearchRequest request); @Override boolean handleAllServersAtOnce(JmxSearchRequest pRequest);  }
@Test public void handleAllServersAtOnce() throws MalformedObjectNameException { assertTrue(handler.handleAllServersAtOnce(new JmxRequestBuilder(RequestType.SEARCH, "java.lang:*").<JmxSearchRequest>build())); }