public void testNotRewindingDisabled() {
Mock formMock = getFormMock(false);
Html4Button button = getButton(formMock, null, true, null);
StringWriter strWriter = new StringWriter();
PrintWriter writer = new PrintWriter(strWriter);
button.renderFormComponent(new MarkupWriterImpl("UTF-8", writer, new AsciiMarkupFilter()), new RequestCycle());
writer.flush();
formMock.verify();
String hiddenName = FORM_NAME + "_ctrl";
assertEquals("<input type=\"hidden\" name=\"" + hiddenName + "\"></input><button type=\"" + TYPE + "\" name=\"" + FORM_NAME + "\" disabled=\"disabled\" value=\"" + LABEL + "\" onclick=\"document." + FORM_NAME + "." + hiddenName + ".value='x'\"><em>body</em></button>", strWriter.toString());
}