[testDBClientJoinBuilder] Add an assertion to avoid a developer from defining wrong getCondition() by mistake.