SimpleMix tested = spy(new SimpleMix());
when(tested, "getValue").thenReturn(0);
SimpleMixCollaborator simpleMixCollaboratorMock = mock(SimpleMixCollaborator.class);
mockStatic(SimpleMixUtilities.class);
SimpleMixConstruction simpleMixConstructionMock = mock(SimpleMixConstruction.class);
Whitebox.setInternalState(tested, simpleMixCollaboratorMock);
when(SimpleMixUtilities.getRandomInteger()).thenReturn(10);
when(simpleMixCollaboratorMock.getRandomInteger()).thenReturn(6);
whenNew(SimpleMixConstruction.class).withNoArguments().thenReturn(simpleMixConstructionMock);
when(simpleMixConstructionMock.getMyValue()).thenReturn(1);
assertEquals(4, tested.calculate());
verifyStatic();
SimpleMixUtilities.getRandomInteger();