public void testAddRemoveGetDomains() throws Exception {
JDBCDomainList dom = new JDBCDomainList();
dom.setDNSService(setUpDNSServer("localhost"));
dom.setFileSystem(new MockFileSystem());
dom.setDataSource(data);
dom.setLog(new SimpleLog("MockLog"));
dom.configure(setUpConfiguration(repos + table));
dom.init();
dom.addDomain("domain1.");
assertEquals("two domain found",dom.getDomains().length,2);
dom.removeDomain("domain1.");
assertNull("two domain found",dom.getDomains());
}