### Question:
SystemMonitor extends QBeanSupport implements Runnable, SystemMonitorMBean, Loggeable { public synchronized void setDetailRequired(boolean detail) { this.detailRequired = detail; setModified(true); if (me != null) me.interrupt(); }  void startService(); void stopService(); synchronized void setSleepTime(long sleepTime); synchronized long getSleepTime(); synchronized void setDetailRequired(boolean detail); synchronized boolean getDetailRequired(); void run(); void dump(PrintStream p, String indent); @Override void setConfiguration(Configuration cfg);  }### Answer:
@Test public void testSetDetailRequired() throws Throwable { systemMonitor.setDetailRequired(true); assertTrue(systemMonitor.getDetailRequired(), "systemMonitor.getDetailRequired()"); assertTrue(systemMonitor.isModified(), "systemMonitor.isModified()"); }