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