IBQuoteProcessor implements Runnable { public boolean isRunning() { return started; } IBQuoteProcessor( BlockingQueue<T> queue, IQuoteEngine quoteEngine ); void startProcessor(); void stopProcessor(); void run(); boolean isRunning();  }
@Test public void testConstructor() { BlockingQueue<Object> mockQueue = mockery.mock(BlockingQueue.class); IQuoteEngine mockQuoteEngine = mockery.mock( IQuoteEngine.class ); IBQuoteProcessor<Object> quoteProcessor = new MockIBQuoteProcessor(mockQueue, mockQuoteEngine); assertEquals( mockQueue, quoteProcessor.quoteBlockingQueue ); assertEquals( mockQuoteEngine, quoteProcessor.quoteEngine ); assertFalse( quoteProcessor.isRunning() ); }