homegrown mocking cardinality