@Test
public void shouldRegisterMapper() {
DozerBeanMapper beanMapper = (DozerBeanMapper) context.getBean("beanMapper");
assertThat(beanMapper, notNullValue());
ReferencingBean referencingBean = context.getBean(ReferencingBean.class);
Mapper mapper = referencingBean.getMapper();
assertThat(mapper, notNullValue());
assertThat(beanMapper, sameInstance(mapper));
}