@Test
public void the_message_list_does_not_contain_messages_that_belong_to_a_component() {

    final FacesMessage componentMessage = new FacesMessage(SEVERITY_INFO, "", "");
    prepareExpectedMessages(emptyList());
    // add local message
    getCurrentInstance().addMessage("foo", componentMessage);
    List<FacesMessage> facesMessages = new BootstrappedMessages().getFacesMessages();
    assertThat(facesMessages).isEqualTo(emptyList());
    new Verifications() {
        {
            getCurrentInstance().getMessages("foo");
            times = 0;
        }
    };
}