builder.addSubmission(SUBMISSION_ID2, events, ACTION, METHOD);
assertNull(builder.modelBeingWritten);
XDIMEAttributes attributes =
new XDIMEAttributesImpl(XFormElements.INPUT);
attributes.setValue("", XDIMEAttribute.ID.toString(), CONTROL_ID);
attributes.setValue("", XDIMEAttribute.REF.toString(), null);
attributes.setValue("", XDIMEAttribute.MODEL.toString(), null);
attributes.setValue("", XDIMEAttribute.SUBMISSION.toString(), SUBMISSION_ID);
builder.registerControl(attributes);
assertEquals(model, builder.modelBeingWritten);
XDIMEAttributes attributes2 = new XDIMEAttributesImpl(
XFormElements.INPUT);
attributes2.setValue("", XDIMEAttribute.ID.toString(), CONTROL_ID2);
attributes2.setValue("", XDIMEAttribute.REF.toString(), null);
attributes2.setValue("", XDIMEAttribute.MODEL.toString(), null);
attributes2.setValue("", XDIMEAttribute.SUBMISSION.toString(), SUBMISSION_ID2);
builder.registerControl(attributes2);
assertEquals(model2, builder.modelBeingWritten);
}