@Test
public void testCreateBusinessObjectFormatExternalInterface()
{

    // Create a business object format external interface create request.
    BusinessObjectFormatExternalInterfaceCreateRequest businessObjectFormatExternalInterfaceCreateRequest =
        new BusinessObjectFormatExternalInterfaceCreateRequest(
            new BusinessObjectFormatExternalInterfaceKey(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, EXTERNAL_INTERFACE));
    // Create a business object format external interface.
    BusinessObjectFormatExternalInterface businessObjectFormatExternalInterface = new BusinessObjectFormatExternalInterface(ID,
        new BusinessObjectFormatExternalInterfaceKey(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, EXTERNAL_INTERFACE));
    // Mock the external calls.
    when(businessObjectFormatExternalInterfaceService.createBusinessObjectFormatExternalInterface(businessObjectFormatExternalInterfaceCreateRequest))
        .thenReturn(businessObjectFormatExternalInterface);
    // Call the method under test.
    BusinessObjectFormatExternalInterface result =
        businessObjectFormatExternalInterfaceRestController.createBusinessObjectFormatExternalInterface(businessObjectFormatExternalInterfaceCreateRequest);
    // Validate the result.
    assertEquals(businessObjectFormatExternalInterface, result);
    // Verify the external calls.
    verify(businessObjectFormatExternalInterfaceService).createBusinessObjectFormatExternalInterface(businessObjectFormatExternalInterfaceCreateRequest);
    verifyNoMoreInteractions(businessObjectFormatExternalInterfaceService);
}