@@ -0,0 +1,817 @@
+package org.modelmapper.bugs;%0A%0Aimport static org.testng.Assert.fail;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport org.modelmapper.AbstractTest;%0Aimport org.modelmapper.Fixtures;%0Aimport org.modelmapper.ModelMapper;%0Aimport org.modelmapper.convention.NameTokenizers;%0Aimport org.testng.annotations.Test;%0A%0A/**%0A * @author Andrei Zinca%0A */%0A@Test%0Apublic class GH143 extends AbstractTest %7B%0A%0A  static class Dummy %7B%0A    public void setX(String x) %7B // do not remove%0A    %7D%0A  %7D%0A%0A  public void testMapping() %7B%0A%0A    modelMapper.getConfiguration().setSourceNameTokenizer(NameTokenizers.UNDERSCORE);%0A%0A    Map%3CString, String%3E m = new HashMap%3CString, String%3E();%0A    m.put(%22__foo%22, %22bar%22);%0A%0A    try %7B%0A      modelMapper.map(m, Dummy.class);%0A    %7D catch (Exception e) %7B%0A      fail(%22should not throw exception%22, e);%0A    %7D%0A  %7D%0A%0A%7D%0A

Add test case