Simmering, not boiling, the raw brats in beer with an onion imparts a ton of delicious flavor and also helps to maximize juiciness. Just make sure to not cook them too hard or too long, as they can become tough.