@Override
    public int configInfoTagCount() {
        ConfigInfoTagMapper configInfoTagMapper = mapperManager.findMapper(dataSourceService.getDataSourceType(),
                TableConstant.CONFIG_INFO_TAG);
        String sql = configInfoTagMapper.count(null);
        Integer result = jt.queryForObject(sql, Integer.class);
        if (result == null) {
            throw new IllegalArgumentException("configInfoTagCount error");
        }
        return result;
    }
@Test
    void testConfigInfoTagCount() {
        Timestamp timestamp = new Timestamp(System.currentTimeMillis());
        
        //mock count
        Mockito.when(jdbcTemplate.queryForObject(anyString(), eq(Integer.class))).thenReturn(308);
        //execute & verify
        int count = externalConfigInfoTagPersistService.configInfoTagCount();
        assertEquals(308, count);
        
        //mock count is null
        Mockito.when(jdbcTemplate.queryForObject(anyString(), eq(Integer.class))).thenReturn(null);
        //execute & verify
        try {
            externalConfigInfoTagPersistService.configInfoTagCount();
            assertTrue(false);
        } catch (Exception e) {
            assertEquals("configInfoTagCount error", e.getMessage());
        }
    }