Open it up, look at it... jam that has gone bad is usually very obviously bad (moldy, discolored). Sugar works well as a preservative, though I find climate to be a factor in how well jams hold up too.
I usually freeze my homemade jams (since I just cook and jar, no canning) and just thaw a...