idwritertest
diff --git a/src/test/java/IdRewriteTest.java b/src/test/java/IdRewriteTest.java
new file mode 100644
index 0000000..be37b7c
--- /dev/null
+++ b/src/test/java/IdRewriteTest.java
@@ -0,0 +1,33 @@
+import de.ids_mannheim.korap.config.BeanConfiguration;
+import de.ids_mannheim.korap.resource.rewrite.IdWriter;
+import de.ids_mannheim.korap.resource.rewrite.RewriteHandler;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * @author hanl
+ * @date 21/10/2015
+ */
+public class IdRewriteTest {
+
+ @BeforeClass
+ public static void setup() {
+ BeanConfiguration.loadClasspathContext();
+ }
+
+ @AfterClass
+ public static void drop() {
+ BeanConfiguration.closeApplication();
+ }
+
+ @Test
+ public void insertTokenId() {
+ RewriteHandler handler = new RewriteHandler(
+ BeanConfiguration.getBeans().getConfiguration());
+ assert handler.add(IdWriter.class);
+
+
+ }
+
+}