@Test
public void testValidateBusinessObjectDataStorageUnitKeyInvalidParameters()
{

    // Try to call the method under test when business object data storage unit key is not specified.
    try
    {
        storageUnitHelper.validateBusinessObjectDataStorageUnitKey(null);
        fail();
    }
    catch (IllegalArgumentException e)
    {
        assertEquals("A business object data storage unit key must be specified.", e.getMessage());
    }
    // Try to call the method under test when business object format version is not specified.
    try
    {
        storageUnitHelper.validateBusinessObjectDataStorageUnitKey(
            new BusinessObjectDataStorageUnitKey(BDEF_NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, NO_FORMAT_VERSION, PARTITION_VALUE,
                SUBPARTITION_VALUES, DATA_VERSION, STORAGE_NAME));
        fail();
    }
    catch (IllegalArgumentException e)
    {
        assertEquals("A business object format version must be specified.", e.getMessage());
    }
    // Try to call the method under test when business object data version is not specified.
    try
    {
        storageUnitHelper.validateBusinessObjectDataStorageUnitKey(
            new BusinessObjectDataStorageUnitKey(BDEF_NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, PARTITION_VALUE,
                SUBPARTITION_VALUES, NO_DATA_VERSION, STORAGE_NAME));
        fail();
    }
    catch (IllegalArgumentException e)
    {
        assertEquals("A business object data version must be specified.", e.getMessage());
    }
}