@Test
public void testEventListeners() throws Exception {
DozerBeanMapper eventMapper = context.getBean("mapperWithEventListener", DozerBeanMapper.class);
assertNotNull(eventMapper.getEventListeners());
assertEquals(1, eventMapper.getEventListeners().size());
DozerEventListener eventListener = eventMapper.getEventListeners().get(0);
assertEquals(EventTestListener.class, eventListener.getClass());
EventTestListener listener = context.getBean(EventTestListener.class);
assertNotNull(listener);
assertEquals(0, listener.getInvocationCount());