protected MailRepository getMailRepository() throws Exception {
MockFileSystem fs = new MockFileSystem();
DataSource datasource = getDataSource();
JDBCMailRepository mr = new JDBCMailRepository();
DefaultConfigurationBuilder defaultConfiguration = new DefaultConfigurationBuilder();
defaultConfiguration.addProperty("[@destinationURL]", "db://maildb/mr/testrepo");
defaultConfiguration.addProperty("sqlFile", "file://conf/sqlResources.xml");
defaultConfiguration.addProperty("[@type]", "MAIL");
mr.setFileSystem(fs);
mr.setDatasource(datasource);
mr.setLog(LoggerFactory.getLogger("MockLog"));
mr.configure(defaultConfiguration);
mr.init();