assertInstanceOf changed from the mock class to the real class