The matches method behaves as if it was written as follows with CLASS replaced with the name of the supplied class.
CLASS
public boolean matches(Object object) { return (object instanceof CLASS); }
193194195196197198199
return MockFactoryImpl.NO_EXPECTATIONS_CONTAINER; } // Javadoc inherited. public ExpectedValue expectsInstanceOf(Class instanceOf) { return new ExpectedInstanceOf(instanceOf); }