def METHOD_NAME(*, app):
    topic = app.topic("foo")
    app.producer = Mock(name="producer")
    fut = topic.as_future_message(
        key=b"foo",
        value=b"bar",
        partition=None,
        eager_partitioning=True,
    )
    assert fut.message.partition is not None