@ SuppressWarnings ( "unchecked" ) public < X > X resetToNice ( final Object mock ) { EasyMock . resetToNice ( mock ) ; return ( X ) mock ; }
Resets the given mock object and turns them to a mock with nice behavior . For details see the EasyMock documentation .