public boolean submitProcessingErrors(Message message) {
        return submitProcessingErrorsInternal(message, message.processingErrors());
    }
@Test
    public void submitProcessingErrors_nothingSubmittedAndMessageNotFilteredOut_ifSubmissionEnabledAndDuplicatesAreKeptAndMessageDoesntSupportFailureHandling() throws Exception {
        // given
        final Message msg = Mockito.mock(Message.class);
        when(msg.getMessageId()).thenReturn("msg-x");
        when(msg.supportsFailureHandling()).thenReturn(false);

        when(msg.processingErrors()).thenReturn(List.of(
                new Message.ProcessingError(() -> "Cause 1", "Message 1", "Details 1"),
                new Message.ProcessingError(() -> "Cause 2", "Message 2", "Details 2")
        ));

        when(failureHandlingConfiguration.submitProcessingFailures()).thenReturn(true);
        when(failureHandlingConfiguration.keepFailedMessageDuplicate()).thenReturn(true);

        // when
        final boolean notFilterOut = underTest.submitProcessingErrors(msg);

        // then
        assertThat(notFilterOut).isTrue();

        verifyNoInteractions(failureSubmissionQueue);
    }