diff --git a/src/test/java/sh/stubborn/contract/migration/MigrateFromSpringCloudContractTest.java b/src/test/java/sh/stubborn/contract/migration/MigrateFromSpringCloudContractTest.java
index 0173b0c..fafd59c 100644
--- a/src/test/java/sh/stubborn/contract/migration/MigrateFromSpringCloudContractTest.java
+++ b/src/test/java/sh/stubborn/contract/migration/MigrateFromSpringCloudContractTest.java
@@ -20,6 +20,7 @@
import org.openrewrite.test.RecipeSpec;
import org.openrewrite.test.RewriteTest;
+import static org.assertj.core.api.Assertions.assertThat;
import static org.openrewrite.maven.Assertions.pomXml;
import static org.openrewrite.properties.Assertions.properties;
import static org.openrewrite.yaml.Assertions.yaml;
@@ -53,23 +54,9 @@ void migrateMavenPlugin() {
""",
- """
-
- 4.0.0
- com.example
- demo
- 1.0.0
-
-
-
- sh.stubborn
- stubborn-contract-maven-plugin
- 4.1.4
-
-
-
-
- """
+ spec -> spec.after(actual -> assertThat(actual)
+ .containsPattern("sh\\.stubborn\\s*stubborn-contract-maven-plugin\\s*\\d+\\.\\d+\\.\\d+")
+ .actual())
)
);
}