@Test
public void testUpdateBusinessObjectDataAttributesAttributeAdded()
{

    // Create a list of attributes.
    List<Attribute> attributes = Arrays.asList(new Attribute(ATTRIBUTE_NAME, ATTRIBUTE_VALUE));
    // Create a business object data entity without attributes.
    BusinessObjectDataEntity businessObjectDataEntity = new BusinessObjectDataEntity();
    businessObjectDataEntity.setAttributes(new ArrayList<>());
    // Call the method under test.
    attributeDaoHelper.updateBusinessObjectDataAttributes(businessObjectDataEntity, attributes);
    // Verify the external calls.
    verifyNoMoreInteractionsHelper();
    // Validate the results.
    assertEquals(1, CollectionUtils.size(businessObjectDataEntity.getAttributes()));
    BusinessObjectDataAttributeEntity businessObjectDataAttributeEntity = IterableUtils.get(businessObjectDataEntity.getAttributes(), 0);
    assertEquals(businessObjectDataEntity, businessObjectDataAttributeEntity.getBusinessObjectData());
    assertEquals(ATTRIBUTE_NAME, businessObjectDataAttributeEntity.getName());
    assertEquals(ATTRIBUTE_VALUE, businessObjectDataAttributeEntity.getValue());
}