private TasksQueue taskQueue;
@Before
public void setUp() {
this.taskQueue = new TasksQueue();
this.executor = new OrderedThreadPoolExecutor(this.threadCount, this.threadCount);
this.conn = EasyMock.createMock(Connection.class);
EasyMock.makeThreadSafe(this.conn, true);
EasyMock.expect(this.conn.getAttribute(this.executor.TASKS_QUEUE)).andReturn(this.taskQueue).anyTimes();
EasyMock.replay(this.conn);