def METHOD_NAME(
    decoy: Decoy,
    mock_broker: Broker,
    mock_core: MagneticModuleCore,
    subject: MagneticModuleContext,
) -> None:
    """It should engage if given a height from the base."""
    subject.engage(height_from_base=42.0)
    decoy.verify(
        mock_broker.publish(
            "command",
            matchers.DictMatching({"$": "before", "name": "command.MAGDECK_ENGAGE"}),
        ),
        mock_core.engage(height_from_base=42.0),
        mock_broker.publish("command", matchers.DictMatching({"$": "after"})),
    )