builder.addModel(MODEL_ID, new EmulatedXFormDescriptor());
builder.addItem(REF, "a, b, c");
// verify that the item exists, is not referenced and the specified
// model exists
SIItem item = builder.getItem(REF, MODEL_ID);
assertNotNull(item);
assertFalse(item.isReferenced());
assertNotNull(builder.getModel(MODEL_ID));
// set the expectation that the setInitial method will be called
attributes.expects.setInitial("a, b, c");
element.setInitialValue(builder, REF, MODEL_ID);
item = builder.getItem(REF, MODEL_ID);
assertNotNull(item);
assertTrue(item.isReferenced());
// make sure that the field descriptor also has the initial value set
assertEquals("a, b, c", element.fieldDescriptor.getInitialValue());
}