public String getProcessedMetadata(Long resultId) {
        return resultRepository.findById(resultId).map(SamlMetadataProcessResult::getMetadata).orElse(null);
    }
@Test
    void getProcessedMetadata() {
        SamlMetadataProcessResult processResult = new SamlMetadataProcessResult();
        processResult.setMetadata("metadata");
        Optional<SamlMetadataProcessResult> resultOptional = Optional.of(processResult);

        when(resultRepositoryMock.findById(anyLong())).thenReturn(resultOptional);

        String result = metadataRetrieverServiceMock.getProcessedMetadata(1L);

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