title: How do you test Wicket TextFields for read-only?
body: <p>I want to test that my Wicket <code>TextField</code> is set to <code>readonly</code>. I have set up my <code>WicketTester</code> but that just supports <code>assertDisabled()</code> which is useless and fails in my case. </p>
  
  <p>I already tried <code>tester.getComponentFromLastRenderedPage(compName).getString("readonly")</code> and 
  <code>tester.getComponentFromLastRenderedPage(compName).getMarkupAttributes().get("readonly")</code> which both sounded somewhat promising to me but failed to deliver. </p>