@@ -0,0 +1,906 @@
+package org.datacite.mds.validation.constraints;%0A%0Aimport static org.junit.Assert.assertFalse;%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport org.datacite.mds.domain.Allocator;%0Aimport org.datacite.mds.domain.Datacentre;%0Aimport org.datacite.mds.util.Utils;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class MatchSymbolPrefixTest %7B%0A%0A    Datacentre datacentre;%0A%0A    @Before%0A    public void init() %7B%0A        Allocator allocator = new Allocator();%0A        allocator.setSymbol(%22AL%22);%0A%0A        datacentre = new Datacentre();%0A        datacentre.setAllocator(allocator);%0A    %7D%0A%0A    @Test%0A    public void test() %7B%0A        assertTrue(isValid(%22AL.DC%22));%0A        assertFalse(isValid(%22OTHER.DC%22));%0A    %7D%0A%0A    boolean isValid(String symbol) %7B%0A        datacentre.setSymbol(symbol);%0A        System.out.println(datacentre);%0A        return Utils.isConstraintValid(datacentre, MatchSymbolPrefix.class);%0A    %7D%0A%7D%0A

add validator for MatchSymbolPrefix