Xml parsing failed for refId include authCheckJoin?

When running all our camunda tests I get the following exception:

java.lang.IllegalArgumentException: XML fragments parsed from previous mappers does not contain value for org.camunda.bpm.engine.impl.persistence.entity.AuthorizationEntity.authCheckJoin

This occurs when it is parsing the file “org.camunda.bpm.engine.impl.persistence.entity.Deployment.xml”
and it encounters the refId in the following snippet and tries to find it in the previous sql fragments that it has build from the previous parsed xml files:

  <sql id="selectDeploymentsByQueryCriteriaSql">
<include refid="org.camunda.bpm.engine.impl.persistence.entity.AuthorizationEntity.authCheckJoin" /> 

The error occurs when it parses all files from the default camunda mapping.xml file to build the mybatis sqlFactorySession.

Any idea what could be the cause? Or where to look?