Many years ago my 84 toyota burned out the low beam. I replaced it with a new one.
However, my problem with tossing items that are still useful kept the now high beam only lamp in my garage. It turns out to be useful at rudimentary Battery testing, as it draws 5-6 amps. If a battery will light that lamp and hold the voltage above 11.5 for a minute, it is worthy to place in a bike. It's not a full load test. But, it's been a pretty good indicator. I will point out that the standard 50W SOHC4 head light draws about 4 amps. And the entire bike with lighting draws about 10A. These are also reasonable load tests.
A battery loses plate material as it discharges. Recharging puts the material back. But, the plate separator design determines how well the metal gets put back where it came from. Many charge/discharge cycles can leaves holes in the plates, or even cut the plates in two pieces, which reduces plate area available. When the plate area is reduced, so is the current output capability of the battery. In other words looking at voltage potential alone, does not guarantee that the battery can deliver rated current. Placing a load on it and have the voltage drop below 10V, generally means the plates have been eaten by the acid into a shape that can't support the current demand.
Of course there are marginal conditions that can fool the simple tests. But, sometimes it can save you time and effort on a lost cause.
Cheers,