ShellInformationProvider implements BannerProvider, HistoryFileNameProvider, PromptProvider, EventListener<PromptChangedEvent> { @Override public String getPrompt() { return prompt; } @Autowired  ShellInformationProvider(EventBus eventBus, MailRepository mailRepository, FiltersAware filtersAware); @PostConstruct void init(); @Override String getBanner(); @Override String getVersion(); @Override String getWelcomeMessage(); @Override String getProviderName(); @Override String getHistoryFileName(); @Override String getPrompt(); @Override void onEvent(PromptChangedEvent event);  }
@Test public void testPromptChange(){ testRepository.addLetter(EntityGenerator.getLetter()); eventBus.fire(new PromptChangedEvent()); assertThat(promptProvider.getPrompt(), equalTo("perspective[*][1]>")); }