it is a bit strange having this assert in the middle of a mock object