@Test
    public void deleteShouldBeTraced() throws Exception {
        // Given
        final String deleteId = "deleteId";
        SqlMapClientTemplate clientTemplate = new SqlMapClientTemplate(this.mockDataSource, this.sqlMapClient);
        // When
        clientTemplate.delete(deleteId);
        clientTemplate.delete(deleteId, new Object());
        clientTemplate.delete(deleteId, new Object(), 0);
        // Then
        PluginTestVerifier verifier = PluginTestVerifierHolder.getInstance();
        Method delete1 = SqlMapClientTemplate.class.getDeclaredMethod("delete", String.class);
        Method delete2 = SqlMapClientTemplate.class.getDeclaredMethod("delete", String.class, Object.class);
        Method delete3 = SqlMapClientTemplate.class.getDeclaredMethod("delete", String.class, Object.class, int.class);
        verifier.verifyTrace(event("IBATIS_SPRING", delete1, Expectations.cachedArgs(deleteId)));
        verifier.verifyTrace(event("IBATIS_SPRING", delete2, Expectations.cachedArgs(deleteId)));
        verifier.verifyTrace(event("IBATIS_SPRING", delete3, Expectations.cachedArgs(deleteId)));
    }
Tests against spring-ibatis 2.0.7+. Prior versions require com.ibatis:ibatis2 dependency, which is not available in the repository.

@author HyunGil Jeong
agent-module/plugins-it/ibatis-it/src/test/java/com/navercorp/pinpoint/it/plugin/ibatis/SqlMapClientTemplateIT.java