@Test
public void tweets() throws Exception {

    ZwitscherRepository repository = mock(ZwitscherRepository.class);
    ZwitscherController controller = new ZwitscherController(repository);
    controller.setQuery("cloudnativenerd");
    controller.setPageSize(42);
    when(repository.search("cloudnativenerd", 42)).thenReturn(Collections.singleton("Hello Test."));
    HttpEntity<Collection<String>> tweets = controller.tweets(null);
    assertFalse(tweets.getBody().isEmpty());
}