@Test
void fetchMetadata() throws URISyntaxException {

    List<Path> paths = new ArrayList<>(4);
    paths.add(Paths.get(ClassLoader.getSystemResource("com/webauthn4j/metadata/JsonMetadataItem_fido2.json").toURI()));
    paths.add(Paths.get(ClassLoader.getSystemResource("com/webauthn4j/metadata/JsonMetadataItem_u2f.json").toURI()));
    paths.add(Paths.get(ClassLoader.getSystemResource("com/webauthn4j/metadata/JsonMetadataItem_uaf.json").toURI()));
    JsonFileMetadataStatementsProvider provider = new JsonFileMetadataStatementsProvider(objectConverter, paths);
    Map<AAGUID, Set<MetadataStatement>> itemMapInFirstCall = provider.provide();
    readMetadataItem(itemMapInFirstCall);
    // read again to run through all branches of JsonFileMetadataStatementsProvider.provider(), and confirm it
    Map<AAGUID, Set<MetadataStatement>> itemMap = provider.provide();
    readMetadataItem(itemMap);
    assertThat(itemMap).isSameAs(itemMapInFirstCall);
}