diff --git a/pkg/dependency/parser/java/pom/testdata/with-spaces/pom.xml b/pkg/dependency/parser/java/pom/testdata/with-spaces/pom.xml
index c5e7c1900230..7a0a1013aa31 100644
--- a/pkg/dependency/parser/java/pom/testdata/with-spaces/pom.xml
+++ b/pkg/dependency/parser/java/pom/testdata/with-spaces/pom.xml
@@ -6,20 +6,20 @@
root-pom-with-spaces
1.0.0
+
+ 1.2.4
+
+
org.example
example-dependency
- 1.2.4
+ ${dependency.version}
-
- 1.2.4
-
-
org.example