code: public <T extends CompoundButton> boolean isButtonChecked(Class<T> expectedClass, String text)
  	{
  		T button = waiter.waitForText(expectedClass, text, 0, Timeout.getSmallTimeout(), true);
  
  		if(button != null && button.isChecked()){
  			return true;
  		}
  		return false;
  	}
docs: Checks if a {@link CompoundButton} with a given text is checked.
  
  @param expectedClass the expected class, e.g. {@code CheckBox.class} or {@code RadioButton.class}
  @param text the text that is expected to be checked
  @return {@code true} if {@code CompoundButton} is checked and {@code false} if it is not checked