@Test
public void getStorageUnitByStorageNameStorageUnitNoExists()
{

    String testStorageName = "I_DO_NOT_EXIST";
    // Try to get a non-existing storage unit.
    try
    {
        businessObjectDataHelper.getStorageUnitByStorageName(
            new BusinessObjectData(INTEGER_VALUE, BDEF_NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, PARTITION_KEY,
                PARTITION_VALUE, SUBPARTITION_VALUES, DATA_VERSION, LATEST_VERSION_FLAG_SET, BusinessObjectDataStatusEntity.VALID, NO_STORAGE_UNITS,
                NO_ATTRIBUTES, NO_BUSINESS_OBJECT_DATA_PARENTS, NO_BUSINESS_OBJECT_DATA_CHILDREN, NO_BUSINESS_OBJECT_DATA_STATUS_HISTORY,
                NO_RETENTION_EXPIRATION_DATE), testStorageName);
        fail("Should throw a IllegalStateException when storage unit does not exist.");
    }
    catch (IllegalStateException e)
    {
        assertEquals(String.format("Business object data has no storage unit with storage name \"%s\".", testStorageName), e.getMessage());
    }
}