@Test
public void testGetBusinessObjectFormatExternalInterfaceDescriptiveInformation()
{

    // Create a business object format external interface key.
    BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey =
        new BusinessObjectFormatExternalInterfaceKey(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, EXTERNAL_INTERFACE);
    // Create business object format external interface descriptive information.
    BusinessObjectFormatExternalInterfaceDescriptiveInformation businessObjectFormatExternalInterfaceDescriptiveInformation =
        new BusinessObjectFormatExternalInterfaceDescriptiveInformation(businessObjectFormatExternalInterfaceKey, DISPLAY_NAME_FIELD, DESCRIPTION);
    // Mock the external calls.
    when(businessObjectFormatExternalInterfaceDescriptiveInformationService
        .getBusinessObjectFormatExternalInterfaceDescriptiveInformation(businessObjectFormatExternalInterfaceKey))
        .thenReturn(businessObjectFormatExternalInterfaceDescriptiveInformation);
    // Call the method under test.
    BusinessObjectFormatExternalInterfaceDescriptiveInformation result = businessObjectFormatExternalInterfaceDescriptiveInformationRestController
        .getBusinessObjectFormatExternalInterface(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, EXTERNAL_INTERFACE);
    // Validate the result.
    assertEquals(businessObjectFormatExternalInterfaceDescriptiveInformation, result);
    // Verify the external calls.
    verify(businessObjectFormatExternalInterfaceDescriptiveInformationService)
        .getBusinessObjectFormatExternalInterfaceDescriptiveInformation(businessObjectFormatExternalInterfaceKey);
    verifyNoMoreInteractions(businessObjectFormatExternalInterfaceDescriptiveInformationService);
}