@Test
public void testApplyApplicableInjection() {

    final Capture capture = new Capture();
    mockEncounter.register(isA(InjectionListener.class));
    expectLastCall().andAnswer(new IAnswer<Object>() {
        public Object answer() throws Throwable {
            capture.setCaptured(getCurrentArguments()[0]);
            return null;
        }
    });
    expect(mockInjector.getInstance(EventBus.class)).
            andReturn(mockEventBus);
    mockEventBus.register(mockSubscriber);
    EasyMockUnitils.replay();
    listener.hear(mockTypeLiteral, mockEncounter);
    final InjectionListener<Object> injectionListener =
            capture.getCaptured();
    assertNotNull(injectionListener);
    injectionListener.afterInjection(mockSubscriber);
}