@Test
public void testGetBusinessObjectDefinitionDescriptionSuggestionStatusEntityWithException()
{

    // Setup mock interactions.
    when(businessObjectDefinitionDescriptionSuggestionStatusDao
        .getBusinessObjectDefinitionDescriptionSuggestionStatusByCode(BDEF_DESCRIPTION_SUGGESTION_STATUS)).thenReturn(null);
    try
    {
        // Call method under test.
        businessObjectDefinitionDescriptionSuggestionStatusDaoHelper
            .getBusinessObjectDefinitionDescriptionSuggestionStatusEntity(BDEF_DESCRIPTION_SUGGESTION_STATUS);
        fail();
    }
    catch (ObjectNotFoundException objectNotFoundException)
    {
        // Validate exception message.
        assertThat("Exception message is not correct.", objectNotFoundException.getMessage(), is(equalTo(String
            .format("Business object definition description suggestion status with code \"%s\" doesn't exist.", BDEF_DESCRIPTION_SUGGESTION_STATUS))));
    }
    // Verify mocks interactions.
    verify(businessObjectDefinitionDescriptionSuggestionStatusDao)
        .getBusinessObjectDefinitionDescriptionSuggestionStatusByCode(BDEF_DESCRIPTION_SUGGESTION_STATUS);
    verifyNoMoreInteractions(businessObjectDefinitionDescriptionSuggestionStatusDao);
}