Switch from reflection to using mockito Whitebox per gdusbabek