*/
public class AbstractTwitterInboundChannelAdapterTests {
@Test
public void testStop() throws Exception {
TwitterTemplate twitter = mock(TwitterTemplate.class);
RestTemplate template = mock(RestTemplate.class);
when(twitter.getRestTemplate()).thenReturn(template);
final CountDownLatch latch = new CountDownLatch(1);
AbstractTwitterInboundChannelAdapter adapter = new AbstractTwitterInboundChannelAdapter(twitter) {
@Override
protected void doSendLine(String line) {