diff --git a/src/test/java/org/camunda/bpm/model/dmn/util/Java9CDataWhitespaceFilter.java b/src/test/java/org/camunda/bpm/model/dmn/util/Java9CDataWhitespaceFilter.java
index <HASH>..<HASH> 100644
--- a/src/test/java/org/camunda/bpm/model/dmn/util/Java9CDataWhitespaceFilter.java
+++ b/src/test/java/org/camunda/bpm/model/dmn/util/Java9CDataWhitespaceFilter.java
@@ -56,9 +56,12 @@ import org.xmlunit.util.Predicate;
  */
 public class Java9CDataWhitespaceFilter implements Predicate<Node> {
 
+  /**
+   * @return false to remove the node from the comparison
+   */
   @Override
   public boolean test(Node toTest) {
-    return isWhitespaceSurroundingCData(toTest);
+    return !isWhitespaceSurroundingCData(toTest);
   }
 
   private boolean isWhitespaceSurroundingCData(Node node) {
@@ -72,13 +75,13 @@ public class Java9CDataWhitespaceFilter implements Predicate<Node> {
         Node child1 = children.item(1);
         Node child2 = children.item(2);
 
-        return !(isTextNode(child0) && isCDataSection(child1) && isTextNode(child2));
+        return isTextNode(child0) && isCDataSection(child1) && isTextNode(child2);
       } else {
-        return true;
+        return false;
       }
 
     } else {
-      return true;
+      return false;
     }
   }
chore(model-api): simplify boolean expressions

related to CAM-<I>