@Test
    public void testInsertObjects_success() throws Exception {
        DataMapper dataMapper = Mappers.createForJdbc(
                "test/" + PACKAGE_PATH + "jdbc-datamapper_success.xml");

        List<CategoryConfig> categoryConfigs = new ArrayList<CategoryConfig>();
        Collections.addAll(categoryConfigs,
                new CategoryConfig("TEST1", 1),
                new CategoryConfig("TEST2", 2));

        dataMapper.insertObjects("insert-config", categoryConfigs);

        ResultSet resultSet = TestDataSourceUtil.select(dataSource.getConnection(),
                "SELECT ID, CONFIG_NAME FROM CategoryConfig");
        StringBuilder stringBuilder = new StringBuilder();
        while ( resultSet.next() ) {
            stringBuilder
                .append("{id=" + resultSet.getInt("ID"))
                .append(",")
                .append("CONFIG_NAME=" + resultSet.getString("CONFIG_NAME"))
                .append("}");
        }

        assertThat(stringBuilder.toString(),
                is("{id=1,CONFIG_NAME=TEST1}{id=2,CONFIG_NAME=TEST2}"));
    }