@Test
public void testGetAndValidateFinalDestroyInDaysNonPositiveValue()
{

    // Mock the external calls.
    when(herdStringHelper.getConfigurationValueAsInteger(ConfigurationValue.BDATA_FINAL_DESTROY_DELAY_IN_DAYS)).thenReturn(0);
    // Try to call the method under test.
    try
    {
        businessObjectDataInitiateDestroyHelperServiceImpl.getAndValidateFinalDestroyInDays();
        fail();
    }
    catch (IllegalStateException e)
    {
        assertEquals(String.format("Configuration \"%s\" must be a positive integer.", ConfigurationValue.BDATA_FINAL_DESTROY_DELAY_IN_DAYS.getKey()),
            e.getMessage());
    }
    // Verify the external calls.
    verify(herdStringHelper).getConfigurationValueAsInteger(ConfigurationValue.BDATA_FINAL_DESTROY_DELAY_IN_DAYS);
    verifyNoMoreInteractionsHelper();
}