I have many radio buttons on my screen. When a radio button is selected, it has an attribute of checked. When the radio button is not selected, the checked attribute is not
Look here:
getAttribute(java.lang.String name)
Returns: The attribute's current value or null if the value is not set.
Use whatever test framework you're using to assert that the value is null
Assert.IsNull(getSingleElement(XXX).getAttribute("checked"));