### Question:
DirPollAdaptor extends QBeanSupport implements DirPollAdaptorMBean { public synchronized void setPollInterval (long pollInterval) { this.pollInterval = pollInterval; 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 testSetPollInterval() throws Throwable { DirPollAdaptor dirPollAdaptor = new DirPollAdaptor(); dirPollAdaptor.setPollInterval(100L); assertEquals(100L, dirPollAdaptor.pollInterval, "dirPollAdaptor.pollInterval"); assertTrue(dirPollAdaptor.isModified(), "dirPollAdaptor.isModified()"); }