@Test
public void testInvalidateUnregisteredBusinessObjectDataValidationStorageMustExist()
{

    BusinessObjectDataInvalidateUnregisteredRequest request =
        new BusinessObjectDataInvalidateUnregisteredRequest(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, PARTITION_VALUE,
            NO_SUBPARTITION_VALUES, "DOES_NOT_EXIST");
    // Given a business object format
    try
    {
        businessObjectFormatServiceTestHelper.createBusinessObjectFormat(request);
    }
    catch (Exception e)
    {
        throw new IllegalArgumentException("Test failed during setup. Most likely setup or developer error.", e);
    }
    // Call the API
    try
    {
        businessObjectDataInvalidateUnregisteredHelper.invalidateUnregisteredBusinessObjectData(request);
        Assert.fail("expected a ObjectNotFoundException, but no exception was thrown");
    }
    catch (Exception e)
    {
        Assert.assertEquals("thrown exception type", ObjectNotFoundException.class, e.getClass());
        Assert.assertEquals("thrown exception message", "Storage with name \"" + request.getStorageName() + "\" doesn't exist.", e.getMessage());
    }
}