public static void remove ( Object mock ) { if ( mock instanceof Class < ? > ) { if ( newSubstitutions . containsKey ( mock ) ) { newSubstitutions . remove ( mock ) ; } if ( classMocks . containsKey ( mock ) ) { classMocks . remove ( mock ) ; } } else if ( instanceMocks . containsKey ( mock ) ) { instanceMocks . remove ( mock ) ; } }
Removes an object from the MockRepository if it exists .