When you get the bike back, check the voltage at the battery with the motor running. Ideally you should have at least 13.5 volts, 14-14.4 is perfect. I say this because batteries rarely just "randomly" crap out...short of them being dropped or such to shatter the plates. Capacity fades over time. If the bike died on the road due to a dead battery, it went dead for a reason, probably it wasn't being charged. Replacing the battery may "fix" the problem for a short time, but unless you find the reason it went bad you'll just be replacing it again in no time. If I'm wrong here correct me, but even with a dead battery(or no battery), the bike would still run off the stator, assuming you bump started it or something. If the main fuse popped, there's definitely something wrong that needs to be addressed.
Vmaxes are known for having "marginal" electrical systems, and a lot of people replace the stock r/r (regulator rectifier) with a newer MOSFET style, off a modern sportbike. This often significantly boosts voltage and adds capacity for accessories and such.
You can test the stator a couple ways. Take off the left side cover and seat, and find the three connectors going to the r/r behind the left passenger peg. One with three wires, a red, and a black. Unplug the one with three wires and get an ohmmeter, set it on the lowest scale(usually 100 or 200 ohms). Trying all combinations of the three terminals, you should get between .4 and 1 ohm, with all of them being very nearly the same. If one is drastically higher, or zero ohms, the stator may be bad. Another test is to put one lead on ground and touch the other to each of the three terminals...should be no circuit, infinite ohms. Any continuity= bad stator. Third way is to disconnect the three wire connector, start the bike, and set the meter to AC volts. At a 1000 RPM idle, any combination of the three should get you around 18 VAC, which increases to around 60 as the bike is revved up. Again, all combinations should be very nearly the same. If the stator checks out, the r/r is probably on it's way out....it's pretty common on 97 and older bikes that have the "old" style r/r.