### Question:
DirPollAdaptor extends QBeanSupport implements DirPollAdaptorMBean { public String getProcessor() { return processorClass; } 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 testGetProcessor() throws Throwable { DirPollAdaptor dirPollAdaptor = new DirPollAdaptor(); dirPollAdaptor.setProcessor("testDirPollAdaptorProcessor"); String result = dirPollAdaptor.getProcessor(); assertEquals("testDirPollAdaptorProcessor", result, "result"); }
@Test public void testGetProcessor1() throws Throwable { String result = new DirPollAdaptor().getProcessor(); assertNull(result, "result"); }