### Question:
BusinessObjectFormatExternalInterfaceHelper { public BusinessObjectFormatExternalInterface createBusinessObjectFormatExternalInterfaceFromEntity( BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity) { return new BusinessObjectFormatExternalInterface(businessObjectFormatExternalInterfaceEntity.getId(), createBusinessObjectFormatExternalInterfaceKeyFromEntity(businessObjectFormatExternalInterfaceEntity)); }  BusinessObjectFormatExternalInterface createBusinessObjectFormatExternalInterfaceFromEntity(
        BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity); BusinessObjectFormatExternalInterfaceKey createBusinessObjectFormatExternalInterfaceKeyFromEntity(
        BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity); void validateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest(
        BusinessObjectFormatExternalInterfaceCreateRequest businessObjectFormatExternalInterfaceCreateRequest); void validateAndTrimBusinessObjectFormatExternalInterfaceKey(BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey);  }### Answer:
@Test public void testCreateBusinessObjectFormatExternalInterfaceFromEntity() { NamespaceEntity namespaceEntity = new NamespaceEntity(); namespaceEntity.setCode(NAMESPACE); BusinessObjectDefinitionEntity businessObjectDefinitionEntity = new BusinessObjectDefinitionEntity(); businessObjectDefinitionEntity.setNamespace(namespaceEntity); businessObjectDefinitionEntity.setName(BDEF_NAME); FileTypeEntity fileTypeEntity = new FileTypeEntity(); fileTypeEntity.setCode(FORMAT_FILE_TYPE_CODE); BusinessObjectFormatEntity businessObjectFormatEntity = new BusinessObjectFormatEntity(); businessObjectFormatEntity.setBusinessObjectDefinition(businessObjectDefinitionEntity); businessObjectFormatEntity.setUsage(FORMAT_USAGE_CODE); businessObjectFormatEntity.setFileType(fileTypeEntity); ExternalInterfaceEntity externalInterfaceEntity = new ExternalInterfaceEntity(); externalInterfaceEntity.setCode(EXTERNAL_INTERFACE); BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity = new BusinessObjectFormatExternalInterfaceEntity(); businessObjectFormatExternalInterfaceEntity.setId(ID); businessObjectFormatExternalInterfaceEntity.setBusinessObjectFormat(businessObjectFormatEntity); businessObjectFormatExternalInterfaceEntity.setExternalInterface(externalInterfaceEntity); BusinessObjectFormatExternalInterface result = businessObjectFormatExternalInterfaceHelper.createBusinessObjectFormatExternalInterfaceFromEntity(businessObjectFormatExternalInterfaceEntity); assertEquals(new BusinessObjectFormatExternalInterface(ID, new BusinessObjectFormatExternalInterfaceKey(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, EXTERNAL_INTERFACE)), result); verifyNoMoreInteractions(alternateKeyHelper); }