### Question:
DirPollAdaptor extends QBeanSupport implements DirPollAdaptorMBean { public int getPoolSize () { return poolSize; } 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 testGetPoolSize() throws Throwable { DirPollAdaptor dirPollAdaptor = new DirPollAdaptor(); dirPollAdaptor.setPoolSize(0); int result = dirPollAdaptor.getPoolSize(); assertEquals(0, result, "result"); }
@Test public void testGetPoolSize1() throws Throwable { int result = new DirPollAdaptor().getPoolSize(); assertEquals(1, result, "result"); }