Hook tool for sending metrics from charm.

A hook tool metric-add is made available to charm authors for sending metrics to state.
I'm not sure I understand what you mean. dummyHookContext is not a test construct.