@Test
public void testRefreshForOneItem() throws Exception {

    when(applicationContext.getBeansWithAnnotation(LineMessageHandler.class))
            .thenReturn(singletonMap("bean", new MessageHandler()));
    // Do
    target.refresh();
    // Verify
    assertThat(target.eventConsumerList).hasSize(1);
    HandlerMethod handlerMethod = target.eventConsumerList.get(0);
    assertThat(handlerMethod.getSupportType())
            .isInstanceOf(Predicate.class);
    assertThat(handlerMethod.getHandler())
            .isInstanceOf(Method.class);
}