### Question:
NotificationSupportedModeService { public TppNotificationData getTppNotificationData(String tppNotificationContentPreferred, String tppNotificationUri) { List<NotificationSupportedMode> modesFromRequest = parseTppNotificationContentPreferred(tppNotificationContentPreferred); return new TppNotificationData(getProcessedNotificationModes(modesFromRequest), tppNotificationUri); }  NotificationModeResponseHeaders resolveNotificationHeaders(List<NotificationSupportedMode> usedModes); TppNotificationData getTppNotificationData(String tppNotificationContentPreferred, String tppNotificationUri);  }### Answer:
@Test void getProcessedNotificationModes_with_filtering() { when(aspspProfileServiceWrapper.getNotificationSupportedModes()) .thenReturn(Arrays.asList(NotificationSupportedMode.SCA, NotificationSupportedMode.LAST)); String tppNotificationContentPreferred = "status=SCA,LAST"; TppNotificationData expected = new TppNotificationData(Arrays.asList(NotificationSupportedMode.SCA, NotificationSupportedMode.LAST), TPP_NOTIFICATION_URI); TppNotificationData actual = notificationSupportedModeService.getTppNotificationData(tppNotificationContentPreferred, TPP_NOTIFICATION_URI); assertEquals(expected, actual); }
@Test void getProcessedNotificationModes_empty() { when(aspspProfileServiceWrapper.getNotificationSupportedModes()) .thenReturn(Arrays.asList(NotificationSupportedMode.SCA, NotificationSupportedMode.LAST)); String tppNotificationContentPreferred = ""; TppNotificationData expected = new TppNotificationData(Collections.emptyList(), TPP_NOTIFICATION_URI); TppNotificationData actual = notificationSupportedModeService.getTppNotificationData(tppNotificationContentPreferred, TPP_NOTIFICATION_URI); assertEquals(expected, actual); }
@Test void getProcessedNotificationModes_supported_none() { when(aspspProfileServiceWrapper.getNotificationSupportedModes()) .thenReturn(Arrays.asList(NotificationSupportedMode.NONE, NotificationSupportedMode.LAST)); String tppNotificationContentPreferred = ""; TppNotificationData expected = new TppNotificationData(Collections.emptyList(), TPP_NOTIFICATION_URI); TppNotificationData actual = notificationSupportedModeService.getTppNotificationData(tppNotificationContentPreferred, TPP_NOTIFICATION_URI); assertEquals(expected, actual); }