code: 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);
  		}
  	}
docs: Removes an object from the MockRepository if it exists.