CustomSqlChange for one type of db was compiled for another ones too

In my liquibase project I created changeset for Oracle db (dbms = “oracle” in xml file) generated by CustomSqlChange java class. It could be successfully applied directly to my db. But in my main spring project I use SpringLiquibase for repository tests (DBUnit). Such tests use H2 db, and so on CI pipeline only my h2 liquibase changesets are applied.
The problem is that oracle changeset with customSqlChange falls down in CI due to
Caused by: liquibase.exception.CustomChangeException: java.lang.ClassNotFoundException:
return springLiquibase;