@Test
public void testUpdateBusinessObjectDefinitionDescriptionSuggestion()
{

    // Create a business object definition description suggestion key.
    BusinessObjectDefinitionDescriptionSuggestionKey key = new BusinessObjectDefinitionDescriptionSuggestionKey(NAMESPACE, BDEF_NAME, USER_ID);
    // Create the business object definition description suggestion update request.
    BusinessObjectDefinitionDescriptionSuggestionUpdateRequest request =
        new BusinessObjectDefinitionDescriptionSuggestionUpdateRequest(DESCRIPTION_SUGGESTION);
    // 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.updateBusinessObjectDefinitionDescriptionSuggestion(key, request))
        .thenReturn(businessObjectDefinitionDescriptionSuggestion);
    // Update a business object definition description suggestion.
    BusinessObjectDefinitionDescriptionSuggestion response = businessObjectDefinitionDescriptionSuggestionRestController
        .updateBusinessObjectDefinitionDescriptionSuggestion(key.getNamespace(), key.getBusinessObjectDefinitionName(), key.getUserId(), request);
    // Verify the external calls.
    verify(businessObjectDefinitionDescriptionSuggestionService).updateBusinessObjectDefinitionDescriptionSuggestion(key, request);
    verifyNoMoreInteractions(businessObjectDefinitionDescriptionSuggestionService);
    // Validate the returned object.
    assertEquals(businessObjectDefinitionDescriptionSuggestion, response);
}