@Override
    public Collection<MaintenanceAssociation> getAllMaintenanceAssociation(MdId mdName) {
        log.debug("Retrieving all MA of MD {} from distributed store", mdName);
        return store.getMaintenanceDomain(mdName)
                .orElseThrow(() -> new IllegalArgumentException("Unknown MD " + mdName))
                .maintenanceAssociationList();
    }
@Test
    public void testGetAllMaintenanceAssociation() {
        Collection<MaintenanceAssociation> maListMd1 =
            service.getAllMaintenanceAssociation(
                    MdIdCharStr.asMdId("test-md-1"));

        assertEquals(2, maListMd1.size());

        maListMd1.iterator().forEachRemaining(ma ->
            assertTrue(ma.maId().maName().endsWith(String.valueOf(ma.maNumericId())))
        );

        //Now try with an invalid name
        try {
            service.getAllMaintenanceAssociation(
                    MdIdCharStr.asMdId("test-md-2"));
        } catch (IllegalArgumentException e) {
            assertEquals("Unknown MD test-md-2", e.getMessage());
        }
    }