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