@Test
public void testPrepareToInitiateRestoreInvalidArchiveRetrievalOption()
{

    // Create a business object data key.
    BusinessObjectDataKey businessObjectDataKey =
        new BusinessObjectDataKey(BDEF_NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, PARTITION_VALUE, SUBPARTITION_VALUES,
            DATA_VERSION);
    // Specify the expected exception.
    expectedException.expect(IllegalArgumentException.class);
    expectedException.expectMessage(is(String.format(String
        .format("The archive retrieval option value \"%s\" is invalid. Valid archive retrieval option values are:%s", INVALID_ARCHIVE_RETRIEVAL_OPTION,
            Stream.of(Tier.values()).map(Enum::name).collect(Collectors.toList())))));
    businessObjectDataInitiateRestoreHelperServiceImpl
        .prepareToInitiateRestore(businessObjectDataKey, EXPIRATION_IN_DAYS, INVALID_ARCHIVE_RETRIEVAL_OPTION);
    // Verify the external calls
    verify(businessObjectDataHelper).validateBusinessObjectDataKey(businessObjectDataKey, true, true);
    verifyNoMoreInteractionsHelper();
}