I think it would be a good idea to use a "checkExpectedClass" parameter here too.