RetentionExpirationExporterController { String getBusinessObjectDefinitionDisplayName(BusinessObjectDefinition businessObjectDefinition) { return StringUtils.isNotEmpty(businessObjectDefinition.getDisplayName()) ? businessObjectDefinition.getDisplayName() : businessObjectDefinition.getBusinessObjectDefinitionName(); }    }
@Test public void testGetBusinessObjectDefinitionDisplayName() { BusinessObjectDefinition businessObjectDefinition = new BusinessObjectDefinition(); businessObjectDefinition.setBusinessObjectDefinitionName(BUSINESS_OBJECT_DEFINITION_NAME); assertEquals(BUSINESS_OBJECT_DEFINITION_NAME, retentionExpirationExporterController.getBusinessObjectDefinitionDisplayName(businessObjectDefinition)); businessObjectDefinition.setDisplayName(BUSINESS_OBJECT_DEFINITION_DISPLAY_NAME); assertEquals(BUSINESS_OBJECT_DEFINITION_DISPLAY_NAME, retentionExpirationExporterController.getBusinessObjectDefinitionDisplayName(businessObjectDefinition)); }