@Test
public void testJmx() throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException,
        InvocationTargetException {

  try {
    Monitor.main(new String[]{"-ss", "-si", "10", "-main",
      MonitorTest.class.getName()});
  } catch (ExitException ex) {
    Assert.assertEquals(0, ex.getExitCode());
  }
}