}
@Test(expected = IllegalArgumentException.class)
public void shouldFailOnDuplicateMapping() {
DozerBeanMapper mapper = new DozerBeanMapper();
mapper.addMapping(new BeanMappingBuilder() {
@Override
protected void configure() {
mapping(String.class, NoNothing.class);
}
});
mapper.addMapping(new BeanMappingBuilder() {
@Override
protected void configure() {
mapping(String.class, NoNothing.class);
}
});