@Test
public void testInvalidateUnregisteredBusinessObjectDataValidationBusinessObjectFormatMustExist()
{

    BusinessObjectDataInvalidateUnregisteredRequest request =
        new BusinessObjectDataInvalidateUnregisteredRequest(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, PARTITION_VALUE,
            NO_SUBPARTITION_VALUES, StorageEntity.MANAGED_STORAGE);
    // 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);
    }
    // Modify a parameter specific to a format to reference a format that does not exist
    request.setBusinessObjectFormatFileType("DOES_NOT_EXIST");
    // 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",
            "Business object format with namespace \"" + request.getNamespace() + "\", business object definition name \"" +
                request.getBusinessObjectDefinitionName() + "\", format usage \"" + request.getBusinessObjectFormatUsage() + "\", format file type \"" +
                request.getBusinessObjectFormatFileType() + "\", and format version \"" + request.getBusinessObjectFormatVersion() + "\" doesn't exist.",
            e.getMessage());
    }
}