NotificationMessageManager { public Map<Class<?>, NotificationMessageBuilder> getEventTypeNotificationMessageBuilderMap() { return eventTypeNotificationMessageBuilderMap; }  @PostConstruct void populateEventTypeNotificationMessageBuilderMap(); Map<Class<?>, NotificationMessageBuilder> getEventTypeNotificationMessageBuilderMap(); List<NotificationMessage> buildNotificationMessages(NotificationEvent notificationEvent);  }
@Test public void testGetEventTypeNotificationMessageBuilderMap() { Map<Class<?>, NotificationMessageBuilder> map = notificationMessageManager.getEventTypeNotificationMessageBuilderMap(); assertNotNull(map); assertEquals(5, map.size()); assertEquals(businessObjectDataStatusChangeMessageBuilder, map.get(BusinessObjectDataStatusChangeNotificationEvent.class)); assertEquals(businessObjectDefinitionDescriptionSuggestionChangeMessageBuilder, map.get(BusinessObjectDefinitionDescriptionSuggestionChangeNotificationEvent.class)); assertEquals(businessObjectFormatVersionChangeMessageBuilder, map.get(BusinessObjectFormatVersionChangeNotificationEvent.class)); assertEquals(storageUnitStatusChangeMessageBuilder, map.get(StorageUnitStatusChangeNotificationEvent.class)); assertEquals(userNamespaceAuthorizationChangeMessageBuilder, map.get(UserNamespaceAuthorizationChangeNotificationEvent.class)); }