diff --git a/wise-webapp/src/test/data/wisemaps/bigmap.mmr b/wise-webapp/src/test/data/wisemaps/bigmap.mmr
new file mode 100644
index 00000000..2585b689
--- /dev/null
+++ b/wise-webapp/src/test/data/wisemaps/bigmap.mmr
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/wise-webapp/src/test/data/wisemaps/bigmap.xml b/wise-webapp/src/test/data/wisemaps/bigmap.xml
new file mode 100644
index 00000000..1f5194e1
--- /dev/null
+++ b/wise-webapp/src/test/data/wisemaps/bigmap.xml
@@ -0,0 +1,263 @@
+
\ No newline at end of file
diff --git a/wise-webapp/src/test/java/com/wisemapping/test/freemind/ExportTest.java b/wise-webapp/src/test/java/com/wisemapping/test/freemind/ExportTest.java
new file mode 100644
index 00000000..cca958e9
--- /dev/null
+++ b/wise-webapp/src/test/java/com/wisemapping/test/freemind/ExportTest.java
@@ -0,0 +1,103 @@
+package com.wisemapping.test.freemind;
+
+import com.wisemapping.exporter.ExportException;
+import com.wisemapping.exporter.freemind.FreemindExporter;
+import com.wisemapping.importer.ImporterException;
+
+import com.wisemapping.model.MindMap;
+import org.jetbrains.annotations.NotNull;
+import org.testng.Assert;
+import org.testng.annotations.DataProvider;
+import org.testng.annotations.Test;
+
+import java.io.*;
+
+@Test
+public class ExportTest {
+ private static final String DATA_DIR_PATH = "src/test/data/wisemaps/";
+
+ @Test(dataProvider = "Data-Provider-Function")
+ public void exportImportExportTest(@NotNull final File wisemap, @NotNull final File recFile) throws ImporterException, IOException, ExportException {
+
+
+ final MindMap mindmap = load(wisemap);
+
+ final FreemindExporter freemindExporter = new FreemindExporter();
+ if (recFile.exists()) {
+ // Compare rec and file ...
+
+ // Load rec file co
+ final FileInputStream fis = new FileInputStream(recFile);
+ final InputStreamReader isr = new InputStreamReader(fis);
+ final BufferedReader br = new BufferedReader(isr);
+
+ final StringBuilder recContent = new StringBuilder();
+ String line = br.readLine();
+ while (line != null) {
+ recContent.append(line);
+ line = br.readLine();
+
+ }
+
+ fis.close();
+
+ // Export mile content ...
+ final ByteArrayOutputStream bos = new ByteArrayOutputStream();
+ freemindExporter.export(mindmap, bos);
+ final String exportContent = new String(bos.toByteArray());
+
+ Assert.assertEquals(recContent.toString(), exportContent);
+
+ } else {
+ final FileOutputStream fos = new FileOutputStream(recFile);
+ freemindExporter.export(mindmap, fos);
+ fos.close();
+ }
+
+
+ }
+
+ private MindMap load(@NotNull File wisemap) throws IOException {
+ final FileInputStream fis = new FileInputStream(wisemap);
+ final InputStreamReader isr = new InputStreamReader(fis);
+ final BufferedReader br = new BufferedReader(isr);
+
+ final StringBuilder content = new StringBuilder();
+ String line = br.readLine();
+ while (line != null) {
+ content.append(line);
+ line = br.readLine();
+
+ }
+ fis.close();
+
+ final MindMap result = new MindMap();
+ result.setXml(content.toString().getBytes());
+ result.setNativeXml(content.toString());
+ return result;
+ }
+
+ //This function will provide the parameter data
+ @DataProvider(name = "Data-Provider-Function")
+ public Object[][] parameterIntTestProvider() {
+
+ final File dataDir = new File(DATA_DIR_PATH);
+ final File[] freeMindFiles = dataDir.listFiles(new FilenameFilter() {
+
+ public boolean accept(File dir, String name) {
+ return name.endsWith(".xml");
+ }
+ });
+
+ final Object[][] result = new Object[freeMindFiles.length][2];
+ for (int i = 0; i < freeMindFiles.length; i++) {
+ File freeMindFile = freeMindFiles[i];
+ final String name = freeMindFile.getName();
+ result[i] = new Object[]{freeMindFile, new File(DATA_DIR_PATH, name.substring(0, name.lastIndexOf(".")) + ".mmr")};
+ }
+
+ return result;
+ }
+
+
+}
diff --git a/wise-webapp/src/test/java/com/wisemapping/test/freemind/FreeMindExportTest.java b/wise-webapp/src/test/java/com/wisemapping/test/freemind/ImportExportTest.java
similarity index 96%
rename from wise-webapp/src/test/java/com/wisemapping/test/freemind/FreeMindExportTest.java
rename to wise-webapp/src/test/java/com/wisemapping/test/freemind/ImportExportTest.java
index ecb74549..b1c68c9e 100644
--- a/wise-webapp/src/test/java/com/wisemapping/test/freemind/FreeMindExportTest.java
+++ b/wise-webapp/src/test/java/com/wisemapping/test/freemind/ImportExportTest.java
@@ -6,7 +6,6 @@ import com.wisemapping.importer.ImportFormat;
import com.wisemapping.importer.Importer;
import com.wisemapping.importer.ImporterException;
import com.wisemapping.importer.ImporterFactory;
-
import com.wisemapping.model.MindMap;
import org.jetbrains.annotations.NotNull;
import org.testng.Assert;
@@ -14,11 +13,9 @@ import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import java.io.*;
-import java.nio.ByteBuffer;
-import java.nio.channels.FileChannel;
@Test
-public class FreeMindExportTest {
+public class ImportExportTest {
private static final String DATA_DIR_PATH = "src/test/data/freemind/";
@Test(dataProvider = "Data-Provider-Function")
diff --git a/wise-webapp/testng.xml b/wise-webapp/testng.xml
index 46872496..40f9e6ea 100644
--- a/wise-webapp/testng.xml
+++ b/wise-webapp/testng.xml
@@ -1,7 +1,7 @@
-
+