Invoke `getFlusher` from `prepare` and mock out `Flusher` in test.