@Operation(summary = "Get service metadata")
    @GetMapping(value = "/entrance/metadata", produces = MediaType.APPLICATION_XML_VALUE)
    @ResponseBody
    public String entranceMetadata() throws MetadataException {
        logger.debug("Receive service metadata request!");
        return entranceMetadataService.getMetadata();
    }
@Test
    public void entranceMetadataTest() throws MetadataException {
        String entranceMetadata = "entranceMetadata";
        when(entranceMetadataServiceMock.getMetadata()).thenReturn(entranceMetadata);

        String result = metadataControllerMock.entranceMetadata();

        assertNotNull(result);
        assertEquals(entranceMetadata, result);
        verify(entranceMetadataServiceMock, times(1)).getMetadata();
    }