target.addState(checked, "checked");
// add the "unchecked" state specified by the image target of an unchecked checkbox
target.addState(unchecked, "unchecked");
// find all the checkboxes, both checked and unchecked
List<ScreenRegion> checkboxes = s.findAll(target);
for (ScreenRegion c : checkboxes){
// get the state of each checkbox
String state = (String) c.getState();
// display the state next to each checkbox to visualize
ScreenLocation labelLocation = Relative.to(c).topLeft().left(70).below(10).getScreenLocation();