// This only tests that the code is generated as expected (which is a bit brittle), it
// doesn't prove that the generated code actually works, but we have lots of integration
// tests for that.
ct
.extendConstructor("myField = (java.lang.Object) as.getAsset(br, \"foo.gif\", rez.getLocale());");
ct.makeReadOnly(fieldName);
replay();