@Test
public void testGetBusinessObjectDefinitionDescriptionSuggestionByKey()
{

    // Create a business object definition description suggestion key.
    BusinessObjectDefinitionDescriptionSuggestionKey key = new BusinessObjectDefinitionDescriptionSuggestionKey(NAMESPACE, BDEF_NAME, USER_ID);
    // Create the business object definition description suggestion.
    BusinessObjectDefinitionDescriptionSuggestion businessObjectDefinitionDescriptionSuggestion =
        new BusinessObjectDefinitionDescriptionSuggestion(ID, key, DESCRIPTION_SUGGESTION, BDEF_DESCRIPTION_SUGGESTION_STATUS, USER_ID, CREATED_ON);
    // Mock calls to external method.
    when(businessObjectDefinitionDescriptionSuggestionService.getBusinessObjectDefinitionDescriptionSuggestionByKey(key))
        .thenReturn(businessObjectDefinitionDescriptionSuggestion);
    // Get the business object definition description suggestion for the specified key.
    BusinessObjectDefinitionDescriptionSuggestion resultBusinessObjectDefinitionDescriptionSuggestion =
        businessObjectDefinitionDescriptionSuggestionRestController
            .getBusinessObjectDefinitionDescriptionSuggestionByKey(key.getNamespace(), key.getBusinessObjectDefinitionName(), key.getUserId());
    // Verify the external calls.
    verify(businessObjectDefinitionDescriptionSuggestionService).getBusinessObjectDefinitionDescriptionSuggestionByKey(key);
    verifyNoMoreInteractions(businessObjectDefinitionDescriptionSuggestionService);
    // Validate the returned object.
    assertEquals(resultBusinessObjectDefinitionDescriptionSuggestion, businessObjectDefinitionDescriptionSuggestion);
}