### Question:
DirPollAdaptor extends QBeanSupport implements DirPollAdaptorMBean { public synchronized void setPath (String path) { this.path = path; setModified (true); } DirPollAdaptor(); synchronized void setPath(String path); synchronized void setPoolSize(int size); int getPoolSize(); String getPath(); synchronized void setPollInterval(long pollInterval); long getPollInterval(); synchronized void setPriorities(String priorities); String getPriorities(); synchronized void setProcessor(String processor); String getProcessor();  }### Answer:
@Test public void testSetPath() throws Throwable { DirPollAdaptor dirPollAdaptor = new DirPollAdaptor(); dirPollAdaptor.setPath("testDirPollAdaptorPath"); assertEquals("testDirPollAdaptorPath", dirPollAdaptor.path, "dirPollAdaptor.path"); assertTrue(dirPollAdaptor.isModified(), "dirPollAdaptor.isModified()"); }