Added test for wildcard serialization in Cosmas2

Change-Id: Ia983a3f6484b003ffcddcbb83b943390bcc417d6
diff --git a/src/test/java/de/ids_mannheim/korap/test/cosmas2/Cosmas2QueryProcessorTest.java b/src/test/java/de/ids_mannheim/korap/test/cosmas2/Cosmas2QueryProcessorTest.java
index b703ca3..57cbc94 100644
--- a/src/test/java/de/ids_mannheim/korap/test/cosmas2/Cosmas2QueryProcessorTest.java
+++ b/src/test/java/de/ids_mannheim/korap/test/cosmas2/Cosmas2QueryProcessorTest.java
@@ -1678,6 +1678,16 @@
                         .asText());
     }
 
+    @Test
+    public void testWildcard () throws JsonProcessingException, IOException {
+        query = "meine* /+w1:2,s0 &Erfahrung";
+        qs.setQuery(query, "cosmas2");
+		res = mapper.readTree(qs.toJSON());
+        assertEquals("type:wildcard",
+					 res.at("/query/operands/0/operands/0/wrap/type").asText());
+        assertEquals("meine*",
+					 res.at("/query/operands/0/operands/0/wrap/key").asText());
+	};	
 
     @Test
     public void testErrors () throws JsonProcessingException, IOException {