I have a method that looks like this (simplification) I want to write a unit test to guarantee that when x is true, method1 is called. I know I can use PowerMock’s Whitebox to set the value of x and invoke the method, but how can I confirm that method1() was called? Note that method1() is void. I am not