AMJournalImageConfigurationMessageListener extends BaseMessageListener { @Override protected void doReceive(Message message) throws Exception { _journalContent.clearCache(); }    }
@Test public void testClearsTheCacheOnAMessageToTheConfigurationDestination() throws Exception { _amJournalImageConfigurationMessageListener.doReceive(new Message()); Mockito.verify( _journalContent, Mockito.times(1) ).clearCache(); }