@Test
public void testUpdateBusinessObjectFormatRetentionInformationNoRetentionTypeWithRetentionPeriodInDays()
{

    // Create a business object format key without version.
    BusinessObjectFormatKey businessObjectFormatKey =
        new BusinessObjectFormatKey(BDEF_NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, NO_FORMAT_VERSION);
    // Try to call the method under test with retention period in days specified without a retention type.
    try
    {
        businessObjectFormatServiceImpl.updateBusinessObjectFormatRetentionInformation(businessObjectFormatKey,
            new BusinessObjectFormatRetentionInformationUpdateRequest(RECORD_FLAG_SET, RETENTION_PERIOD_DAYS, NO_RETENTION_TYPE));
        fail();
    }
    catch (IllegalArgumentException e)
    {
        assertEquals("A retention period in days cannot be specified without retention type.", e.getMessage());
    }
    // Verify the external calls.
    verify(businessObjectFormatHelper).validateBusinessObjectFormatKey(businessObjectFormatKey, false);
    verifyNoMoreInteractionsHelper();
}