}
@Test
public void testRssRouteOnly() throws Exception {
TatamibotConfiguration configuration = getRssBotConfiguration();
configuration.setTag("BlogIppon"); // <<< ==== TAG
setupAndLaunchContext(configuration);
await().until(statusUpdateServiceWasCallAtLeast3Times());
String msg1 = "[Ippevent Mobilité – Applications mobiles – ouverture des inscriptions](http://feedproxy.google.com/~r/LeBlogDesExpertsJ2ee/~3/GcJYERHTfoQ/)";
String msg2 = "[Business – Ippon Technologies acquiert Atomes et renforce son offre Cloud](http://feedproxy.google.com/~r/LeBlogDesExpertsJ2ee/~3/wK-Y47WGZBQ/)";
String msg3 = "[Les Méthodes Agiles – Définition de l’Agilité](http://feedproxy.google.com/~r/LeBlogDesExpertsJ2ee/~3/hSqyt1MCOoo/)";
verify(statusUpdateService).postStatusAsUser(msg1 + " #BlogIppon", tatamibotUser);
verify(statusUpdateService).postStatusAsUser(msg2 + " #BlogIppon", tatamibotUser);
verify(statusUpdateService).postStatusAsUser(msg3 + " #BlogIppon", tatamibotUser);
verifyNoMoreInteractions(statusUpdateService);
// TODO : the repository is updated three times ...
ArgumentCaptor<TatamibotConfiguration> argumentCaptor = ArgumentCaptor.forClass(TatamibotConfiguration.class);
verify(tatamibotConfigurationRepository, times(3)).updateTatamibotConfiguration(argumentCaptor.capture());
TatamibotConfiguration value = argumentCaptor.getValue();
assertThat(value.getLastUpdateDate(), is(DateTime.parse("2012-12-17T17:35:51Z").toDate()));
assertTrue(idempotentRepository.contains("ippon.fr-" + msg1));
}