@Test
public void testPrioritySelection() throws Exception {

    when(applicationContext.getBeansWithAnnotation(LineMessageHandler.class))
            .thenReturn(ImmutableMap.of("bean", new MessageHandler(),
                                        "anothrer", new AnotherMessageHandler()));
    // Do
    target.refresh();
    // Verify
    assertThat(target.eventConsumerList).hasSize(3);
    // 1st
    assertThat(target.eventConsumerList.get(0).getHandler().getName())
            .isEqualTo("textMessageEventHandler");
    // 2nd
    assertThat(target.eventConsumerList.get(1).getHandler().getName())
            .isEqualTo("generalMessageHandler");
    // 3rd
    assertThat(target.eventConsumerList.get(2).getHandler().getName())
            .isEqualTo("defaultEventHandler");
}