@Override
    public synchronized boolean registerAETitle(String aet) throws ConfigurationException {
        ensureConfigurationExists();
        try {
            registerAET(aet);
            return true;
        } catch (AETitleAlreadyExistsException e) {
            return false;
        }
    }
@Test
    public void testRegisterAETitle() throws Exception {
        config.unregisterAETitle("TEST-AET1");
        assertTrue(config.registerAETitle("TEST-AET1"));
        assertFalse(config.registerAETitle("TEST-AET1"));
        assertTrue(
                Arrays.asList(config.listRegisteredAETitles())
                .contains("TEST-AET1"));
        config.unregisterAETitle("TEST-AET1");
        assertFalse(
                Arrays.asList(config.listRegisteredAETitles())
                .contains("TEST-AET1"));
    }