.getHtmlElementById(spinner.getClientId(facesContext) + "Edit");
assertNotNull(htmlSpinnerEdit);
assertTrue(htmlSpinnerEdit.getAttributeValue("class").contains(
"rich-spinner-input-container"));
HtmlInput htmlSpinnerInput = (HtmlInput) htmlSpinnerEdit.getLastChild();
assertNotNull(htmlSpinnerInput);
assertTrue(htmlSpinnerInput.getAttributeValue("class").contains(
"rich-spinner-input"));
HtmlElement buttonsContainer = (HtmlElement) renderedView
.getHtmlElementById(spinner.getClientId(facesContext)
+ "Buttons");
assertNotNull(buttonsContainer);
Collection inputs = buttonsContainer.getHtmlElementsByTagName("input");
for (Iterator iter = inputs.iterator(); iter.hasNext();) {
HtmlInput child = (HtmlInput) iter.next();
assertTrue(child.getTypeAttribute().equals("image"));
assertTrue(child.getAttributeValue("class").contains(
"rich-spinner-btn rich-spinner-button"));
}
}