ExecHandler extends JsonRequestHandler<JmxExecRequest> { @Override public RequestType getType() { return RequestType.EXEC; } ExecHandler(Restrictor pRestrictor, Converters pConverters); @Override RequestType getType(); @Override Object doHandleRequest(MBeanServerConnection server, JmxExecRequest request);  }
@Test public void simple() throws MalformedObjectNameException, InstanceNotFoundException, IOException, ReflectionException, MBeanException, AttributeNotFoundException, NotChangedException { JmxExecRequest request = new JmxRequestBuilder(EXEC, oName). operation("simple"). build(); assertEquals(handler.getType(), EXEC); Object res = handler.handleRequest(getMBeanServer(),request); assertNull(res); }