def METHOD_NAME(
    decoy: Decoy,
    mock_core: TemperatureModuleCore,
    mock_broker: Broker,
    subject: TemperatureModuleContext,
) -> None:
    """It should deactivate the heater."""
    subject.deactivate()
    decoy.verify(
        mock_broker.publish(
            "command",
            matchers.DictMatching(
                {"$": "before", "name": "command.TEMPDECK_DEACTIVATE"}
            ),
        ),
        mock_core.deactivate(),
        mock_broker.publish("command", matchers.DictMatching({"$": "after"})),
    )