def create_mock_category(id, sig, thresh, name):
    """Create a mock category object for testing purposes.

    Args:
        id: str, system referenc (hash when not a test obj).
        sig: str, the signature we're matching against.
        thresh: float, what ratio will match sig.
        name: str, human-readable name.
    """
    cat = Category(
            redis_util.MockRedis(share_state=False),
            cat_id=id)

    cat._set_signature(sig)
    cat._set_threshold(thresh)
    cat._set_human(name)

    return cat