### Question:
SystemMonitor extends QBeanSupport implements Runnable, SystemMonitorMBean, Loggeable { public synchronized void setSleepTime(long sleepTime) { this.sleepTime = sleepTime; 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 testSetSleepTime() throws Throwable { systemMonitor.setSleepTime(1L); assertEquals(1L, systemMonitor.getSleepTime(), "systemMonitor.getSleepTime()"); assertTrue(systemMonitor.isModified(), "systemMonitor.isModified()"); }