### Question:
DailyTaskAdaptor extends QBeanSupport implements Runnable { protected void stopService () throws Exception { if (thisThread != null) thisThread.interrupt(); } DailyTaskAdaptor(); void run(); Date getWhen();  }### Answer:
@Test public void testStopService() throws Throwable { DailyTaskAdaptor dailyTaskAdaptor = new DailyTaskAdaptor(); dailyTaskAdaptor.startService(); dailyTaskAdaptor.stopService(); assertTrue(true, "Test completed without Exception"); }
@Test public void testStopService1() throws Throwable { DailyTaskAdaptor dailyTaskAdaptor = new DailyTaskAdaptor(); dailyTaskAdaptor.stopService(); assertNull(dailyTaskAdaptor.thisThread, "dailyTaskAdaptor.thisThread"); }