@Test
void createMetadataWithApplicationIdentifier() throws Exception
{

  EidasMetadataService metadataService = getEidasMetadataService();
  EidasSigner signer = new EidasSigner(keyPair.getKey(), keyPair.getCert());
  byte[] metadataByteArray = metadataService.generate(signer);
  String metadataString = new String(metadataByteArray, StandardCharsets.UTF_8);
  Assertions.assertTrue(metadataString.contains("http://eidas.europa.eu/entity-attributes/application-identifier"));
  Assertions.assertTrue(metadataString.contains("German eIDAS Middleware version: 2.0"));
  Assertions.assertTrue(metadataString.contains("http://eidas.europa.eu/entity-attributes/protocol-version"));
}