I am writing a unit test for a FizzConfigurator class that looks like:
FizzConfigurator
public class FizzConfigurator { public void doFoo(String msg) { d
This is a clear sign that doWidget method should belong to another class which FizzConfigurator would depend on.
doWidget
In your test, this new dependency would be a mock, and you could easily verify if its method was called with verify.
verify