@Override
    public boolean createMaintenanceDomain(MaintenanceDomain newMd) throws CfmConfigException {
        log.info("Creating/Updating MD {} in distributed store", newMd.mdId());
        return store.createUpdateMaintenanceDomain(newMd);
    }
@Test
    public void testCreateMaintenanceDomain() throws CfmConfigException {

        MaintenanceAssociation maTest21 = DefaultMaintenanceAssociation
                .builder(MaIdCharStr.asMaId("test-ma-2-1"), 9)
                .ccmInterval(MaintenanceAssociation.CcmInterval.INTERVAL_1S)
                .maNumericId((short) 1)
                .addToRemoteMepIdList(MepId.valueOf((short) 101))
                .addToRemoteMepIdList(MepId.valueOf((short) 102))
                .addToComponentList(
                        DefaultComponent.builder(1)
                                .tagType(Component.TagType.VLAN_STAG)
                                .build())
                .build();

        MaintenanceDomain mdTest2 = DefaultMaintenanceDomain
                .builder(MdIdCharStr.asMdId("test-md-2"))
                .mdLevel(MaintenanceDomain.MdLevel.LEVEL2)
                .mdNumericId((short) 2)
                .addToMaList(maTest21)
                .build();


        //We expect false here because there should have been no previous value
        //with that ID in the store
        assertFalse(service.createMaintenanceDomain(mdTest2));
    }