@@ -0,0 +1,1948 @@
+package org.simpleflatmapper.jdbc.test;%0A%0Aimport org.junit.Test;%0Aimport org.simpleflatmapper.jdbc.JdbcMapper;%0Aimport org.simpleflatmapper.jdbc.JdbcMapperBuilder;%0Aimport org.simpleflatmapper.jdbc.JdbcMapperFactory;%0A%0Aimport java.sql.ResultSet;%0Aimport java.sql.SQLException;%0Aimport java.util.Objects;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.when;%0A%0Apublic class Issue720Test %7B%0A%0A    @Test%0A    public void test() throws SQLException %7B%0A        JdbcMapperBuilder%3CFoo%3E builder = JdbcMapperFactory.newInstance().newBuilder(Foo.class);%0A%0A%0A        builder.addMapping(%22id%22);%0A        builder.addMapping(%22name%22);%0A        builder.addMapping(%22bar_id%22);%0A        builder.addMapping(%22bar_id%22);%0A        builder.addMapping(%22bar_name%22);%0A        builder.mapper();%0A%0A        JdbcMapper%3CFoo%3E mapper = builder.mapper();%0A%0A        ResultSet rs = mock(ResultSet.class);%0A%0A        when(rs.getInt(1)).thenReturn(1);%0A        when(rs.getString(2)).thenReturn(%22foo%22);%0A        when(rs.getInt(3)).thenReturn(2);%0A        when(rs.getInt(4)).thenReturn(3);%0A        when(rs.getString(5)).thenReturn(%22bar%22);%0A%0A%0A        Foo foo = mapper.map(rs);%0A%0A        assertEquals(1, foo.id);%0A        assertEquals(2, foo.barId);%0A        assertEquals(3, foo.bar.id);%0A%0A        assertEquals(%22foo%22, foo.name);%0A        assertEquals(%22bar%22, foo.bar.name);%0A%0A%0A    %7D%0A%0A%0A%0A    public static class Foo %7B%0A        public final int id;%0A        public final String name;%0A        public final int barId;%0A        public final Bar bar;%0A%0A%0A        public Foo(int id, String name, int barId, Bar bar) %7B%0A            this.id = id;%0A            this.name = name;%0A            this.bar = bar;%0A            this.barId = barId;%0A        %7D%0A%0A%0A    %7D%0A%0A    public static final class Bar %7B%0A        public final int id;%0A        public final String name;%0A%0A        public Bar(int id, String name) %7B%0A            this.id = id;%0A            this.name=name;%0A        %7D%0A    %7D%0A%0A%7D%0A

rename test class