public String getProcessedMetadata(Long resultId) {
        return resultRepository.findById(resultId).map(SamlMetadataProcessResult::getMetadata).orElse(null);
    }
@Test
    void processedMetadataNotFound() {
        when(resultRepositoryMock.findById(anyLong())).thenReturn(Optional.empty());

        String result = metadataRetrieverServiceMock.getProcessedMetadata(1L);

        verify(resultRepositoryMock, times(1)).findById(anyLong());
        assertNull(result);
    }