@Override
    public long findConfigMaxId() {
        ConfigInfoMapper configInfoMapper = mapperManager.findMapper(dataSourceService.getDataSourceType(),
                TableConstant.CONFIG_INFO);
        MapperResult mapperResult = configInfoMapper.findConfigMaxId(null);
        return Optional.ofNullable(databaseOperate.queryOne(mapperResult.getSql(), Long.class)).orElse(0L);
    }
@Test
    void testFindConfigMaxId0() {
        
        Mockito.when(databaseOperate.queryOne(anyString(), eq(Long.class))).thenReturn(0L);
        long configMaxId = embeddedConfigInfoPersistService.findConfigMaxId();
        assertEquals(0, configMaxId);
    }