### Question:
DirPollAdaptor extends QBeanSupport implements DirPollAdaptorMBean { public synchronized void setPoolSize (int size) { this.poolSize = size; 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 testSetPoolSize() throws Throwable { DirPollAdaptor dirPollAdaptor = new DirPollAdaptor(); dirPollAdaptor.setPoolSize(100); assertEquals(100, dirPollAdaptor.poolSize, "dirPollAdaptor.poolSize"); assertTrue(dirPollAdaptor.isModified(), "dirPollAdaptor.isModified()"); }