Ash reaches the Olivine Gym and enters it, hoping to just breeze through this battle. When he approaches the Trainer box, a girl comes out, claiming herself to be the Gym Leader, Jasmine. Ash seems to believe her and challenges “Jasmine” to a fight. “Jasmine” declares that the match will a three-on-three and she selects an Onix which seems to be coated with something. On impulse, Ash calls out Totodile to make short work of the Rock-type. Ash commands Totodile to use Water Gun. The attack is effective at first but somehow, the Onix breaks through and knocks Totodile out with a single Tackle. Ash selects Pikachu who begins the round with a Quick Attack. A voice calls for the match to stop, and it is revealed to the real Jasmine, much to everyone’s surprise. Jasmine reveals that the girl is her apprentice, Janina, and calls for her young apprentice to pay a visit to her office immediately. Janina apologizes to Ash for the false match before explaining her conduct to Jasmine. Janina admits that she covered her Onix in water-repellent wax. Jasmine is deeply disappointed and expels her young apprentice to allow her time to learn to truly communicate with her Pokémon. Janina leaves the Gym feeling upset. Meanwhile, inside the Gym, Jasmine offers Ash her sincerest apologies. She admits that she would gladly battle him, though she is too exhausted from being concerned about Sparkle. Jasmine suddenly receives a call and leaves the Gym to immediately attend to the urgent matter.
(Source: Bulbapedia)