public void checkOin(String entityId, String oin) {
        Pattern pattern = Pattern.compile("urn:nl-eid-gdi:1.0:\\w+:" + oin + ":entities:\\d+");
        Matcher matcher = pattern.matcher(entityId);

        if (!matcher.matches()) {
            throw new MetadataParseException("OIN certificate does not match entityID");
        }
    }
@Test
    public void checkOinTest() {
        metadataProcessorServiceMock.checkOin("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS", "SSSSSSSSSSSSSSSSSSSS");
        metadataProcessorServiceMock.checkOin("urn:nl-eid-gdi:1:0:DV:00000008888888888001:entities:0001", "SSSSSSSSSSSSSSSSSSSS");
    }