@Test
public void testUpdateBusinessObjectDataAttributesMissingRequiredParameters()
{

    // Create a business object data key.
    BusinessObjectDataKey businessObjectDataKey =
        new BusinessObjectDataKey(BDEF_NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, PARTITION_VALUE, SUBPARTITION_VALUES,
            DATA_VERSION);
    // Try to update business object data attributes when the update request is not specified.
    try
    {
        businessObjectDataServiceImpl.updateBusinessObjectDataAttributes(businessObjectDataKey, null);
        fail();
    }
    catch (IllegalArgumentException e)
    {
        assertEquals("A business object data attributes update request must be specified.", e.getMessage());
    }
    // Try to update business object data attributes when the list of attributes is not specified.
    try
    {
        businessObjectDataServiceImpl.updateBusinessObjectDataAttributes(businessObjectDataKey, new BusinessObjectDataAttributesUpdateRequest());
        fail();
    }
    catch (IllegalArgumentException e)
    {
        assertEquals("A list of business object data attributes must be specified.", e.getMessage());
    }
    // Verify the external calls.
    verify(businessObjectDataHelper, times(2)).validateBusinessObjectDataKey(businessObjectDataKey, true, true);
    verifyNoMoreInteractionsHelper();
}