test_class.declarator: businessObjectFormatVersionChangeMessageBuilder
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private BusinessObjectFormatVersionChangeMessageBuilder businessObjectFormatVersionChangeMessageBuilder;
test_class.type: BusinessObjectFormatVersionChangeMessageBuilder
test_class.var_name: businessObjectFormatVersionChangeMessageBuilder
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/notification/BusinessObjectFormatVersionChangeMessageBuilderTest.java
test_class.identifier: BusinessObjectFormatVersionChangeMessageBuilderTest
test_class.superclass: extends AbstractNotificationMessageBuilderTestHelper
test_case.body: @Test
      public void testGetBusinessObjectFormatVersionChangeMessageVelocityContextMap()
      {
          // Create a business object format key with values that require JSON and XML escaping.
          BusinessObjectFormatKey businessObjectFormatKey =
              new BusinessObjectFormatKey(BDEF_NAMESPACE + SUFFIX_UNESCAPED, BDEF_NAME + SUFFIX_UNESCAPED, FORMAT_USAGE_CODE + SUFFIX_UNESCAPED,
                  FORMAT_FILE_TYPE_CODE + SUFFIX_UNESCAPED, FORMAT_VERSION_2);
  
          // Call the method under test.
          Map<String, Object> result = businessObjectFormatVersionChangeMessageBuilder.getNotificationMessageVelocityContextMap(
              new BusinessObjectFormatVersionChangeNotificationEvent(businessObjectFormatKey, String.valueOf(FORMAT_VERSION)));
  
          // Create an expected JSON escaped business object format key.
          BusinessObjectFormatKey expectedBusinessObjectFormatKeyWithJson =
              new BusinessObjectFormatKey(BDEF_NAMESPACE + SUFFIX_ESCAPED_JSON, BDEF_NAME + SUFFIX_ESCAPED_JSON, FORMAT_USAGE_CODE + SUFFIX_ESCAPED_JSON,
                  FORMAT_FILE_TYPE_CODE + SUFFIX_ESCAPED_JSON, FORMAT_VERSION_2);
  
          // Create an expected XML escaped business object format key.
          BusinessObjectFormatKey expectedBusinessObjectFormatKeyWithXml =
              new BusinessObjectFormatKey(BDEF_NAMESPACE + SUFFIX_ESCAPED_XML, BDEF_NAME + SUFFIX_ESCAPED_XML, FORMAT_USAGE_CODE + SUFFIX_ESCAPED_XML,
                  FORMAT_FILE_TYPE_CODE + SUFFIX_ESCAPED_XML, FORMAT_VERSION_2);
  
          // Validate the results.
          assertEquals(8, CollectionUtils.size(result));
  
          assertEquals(businessObjectFormatKey, result.get("businessObjectFormatKey"));
          assertEquals(expectedBusinessObjectFormatKeyWithJson, result.get("businessObjectFormatKeyWithJson"));
          assertEquals(expectedBusinessObjectFormatKeyWithXml, result.get("businessObjectFormatKeyWithXml"));
  
          assertEquals(FORMAT_VERSION_2, result.get("newBusinessObjectFormatVersion"));
          assertEquals(FORMAT_VERSION.toString(), result.get("oldBusinessObjectFormatVersion"));
  
          assertEquals(BDEF_NAMESPACE + SUFFIX_UNESCAPED, result.get("namespace"));
          assertEquals(BDEF_NAMESPACE + SUFFIX_ESCAPED_JSON, result.get("namespaceWithJson"));
          assertEquals(BDEF_NAMESPACE + SUFFIX_ESCAPED_XML, result.get("namespaceWithXml"));
      }
test_case.class_method_signature: BusinessObjectFormatVersionChangeMessageBuilderTest.testGetBusinessObjectFormatVersionChangeMessageVelocityContextMap()
test_case.full_signature: @Test public void testGetBusinessObjectFormatVersionChangeMessageVelocityContextMap()
test_case.identifier: testGetBusinessObjectFormatVersionChangeMessageVelocityContextMap
test_case.invocations: getNotificationMessageVelocityContextMap valueOf assertEquals size assertEquals get assertEquals get assertEquals get assertEquals get assertEquals toString get assertEquals get assertEquals get assertEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetBusinessObjectFormatVersionChangeMessageVelocityContextMap()
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/notification/BusinessObjectFormatVersionChangeMessageBuilder.java
focal_class.identifier: BusinessObjectFormatVersionChangeMessageBuilder
focal_class.interfaces: implements NotificationMessageBuilder
focal_class.class_method_signature: BusinessObjectFormatVersionChangeMessageBuilder.getNotificationMessageVelocityContextMap(NotificationEvent notificationEvent)
focal_class.full_signature: @Override @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST", justification = "The NotificationEvent is cast to a BusinessObjectFormatVersionChangeNotificationEvent which is always the case since" + " we manage the event type to a builder in a map defined in NotificationMessageManager") public Map<String, Object> getNotificationMessageVelocityContextMap(NotificationEvent notificationEvent)
focal_class.identifier: getNotificationMessageVelocityContextMap
focal_class.modifiers: @Override @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST", justification = "The NotificationEvent is cast to a BusinessObjectFormatVersionChangeNotificationEvent which is always the case since" + " we manage the event type to a builder in a map defined in NotificationMessageManager") public
focal_class.parameters: (NotificationEvent notificationEvent)
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> getNotificationMessageVelocityContextMap(NotificationEvent notificationEvent)
focal_class.class_method_signature: BusinessObjectFormatVersionChangeMessageBuilder.escapeJsonBusinessObjectFormatKey(final BusinessObjectFormatKey businessObjectFormatKey)
focal_class.full_signature: private BusinessObjectFormatKey escapeJsonBusinessObjectFormatKey(final BusinessObjectFormatKey businessObjectFormatKey)
focal_class.identifier: escapeJsonBusinessObjectFormatKey
focal_class.modifiers: private
focal_class.parameters: (final BusinessObjectFormatKey businessObjectFormatKey)
focal_class.return: BusinessObjectFormatKey
focal_class.signature: BusinessObjectFormatKey escapeJsonBusinessObjectFormatKey(final BusinessObjectFormatKey businessObjectFormatKey)
focal_class.class_method_signature: BusinessObjectFormatVersionChangeMessageBuilder.escapeXmlBusinessObjectFormatKey(final BusinessObjectFormatKey businessObjectFormatKey)
focal_class.full_signature: private BusinessObjectFormatKey escapeXmlBusinessObjectFormatKey(final BusinessObjectFormatKey businessObjectFormatKey)
focal_class.identifier: escapeXmlBusinessObjectFormatKey
focal_class.modifiers: private
focal_class.parameters: (final BusinessObjectFormatKey businessObjectFormatKey)
focal_class.return: BusinessObjectFormatKey
focal_class.signature: BusinessObjectFormatKey escapeXmlBusinessObjectFormatKey(final BusinessObjectFormatKey businessObjectFormatKey)
focal_class.superclass: extends AbstractNotificationMessageBuilder
focal_method.body: @Override
      @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST", justification =
          "The NotificationEvent is cast to a BusinessObjectFormatVersionChangeNotificationEvent which is always the case since" +
              " we manage the event type to a builder in a map defined in NotificationMessageManager")
      public Map<String, Object> getNotificationMessageVelocityContextMap(NotificationEvent notificationEvent)
      {
          BusinessObjectFormatVersionChangeNotificationEvent event = (BusinessObjectFormatVersionChangeNotificationEvent) notificationEvent;
          Map<String, Object> velocityContextMap = new HashMap<>();
  
          addObjectPropertyToContext(velocityContextMap, "businessObjectFormatKey", event.getBusinessObjectFormatKey(),
              escapeJsonBusinessObjectFormatKey(event.getBusinessObjectFormatKey()), escapeXmlBusinessObjectFormatKey(event.getBusinessObjectFormatKey()));
          velocityContextMap.put("newBusinessObjectFormatVersion", event.getBusinessObjectFormatKey().getBusinessObjectFormatVersion());
          velocityContextMap.put("oldBusinessObjectFormatVersion", event.getOldBusinessObjectFormatVersion());
          addStringPropertyToContext(velocityContextMap, "namespace", event.getBusinessObjectFormatKey().getNamespace());
  
          return velocityContextMap;
      }
focal_method.class_method_signature: BusinessObjectFormatVersionChangeMessageBuilder.getNotificationMessageVelocityContextMap(NotificationEvent notificationEvent)
focal_method.full_signature: @Override @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST", justification = "The NotificationEvent is cast to a BusinessObjectFormatVersionChangeNotificationEvent which is always the case since" + " we manage the event type to a builder in a map defined in NotificationMessageManager") public Map<String, Object> getNotificationMessageVelocityContextMap(NotificationEvent notificationEvent)
focal_method.identifier: getNotificationMessageVelocityContextMap
focal_method.invocations: addObjectPropertyToContext getBusinessObjectFormatKey escapeJsonBusinessObjectFormatKey getBusinessObjectFormatKey escapeXmlBusinessObjectFormatKey getBusinessObjectFormatKey put getBusinessObjectFormatVersion getBusinessObjectFormatKey put getOldBusinessObjectFormatVersion addStringPropertyToContext getNamespace getBusinessObjectFormatKey
focal_method.modifiers: @Override @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST", justification = "The NotificationEvent is cast to a BusinessObjectFormatVersionChangeNotificationEvent which is always the case since" + " we manage the event type to a builder in a map defined in NotificationMessageManager") public
focal_method.parameters: (NotificationEvent notificationEvent)
focal_method.return: Map<String, Object>
focal_method.signature: Map<String, Object> getNotificationMessageVelocityContextMap(NotificationEvent notificationEvent)