diff --git a/src/test/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolutionTests.java b/src/test/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolutionTests.java
index 38c602be..2c7e18a7 100644
--- a/src/test/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolutionTests.java
+++ b/src/test/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolutionTests.java
@@ -182,7 +182,8 @@ void performTest(String profileName) throws IOException, SaxonApiException {
StringWriter writer = new StringWriter();
serializer.serialize(catalog, writer);
- // OscalBindingContext.instance().newSerializer(Format.YAML, Catalog.class).serialize(catalog,
+ // OscalBindingContext.instance().newSerializer(Format.YAML,
+ // Catalog.class).serialize(catalog,
// System.out);
// System.out.println("Pre scrub: " + writer.getBuffer().toString());
@@ -256,4 +257,13 @@ void testArsModerateProfile() throws IOException, ProfileResolutionException, UR
assertNotNull(resolvedCatalog);
}
+
+ @Test
+ void testIssue106Profile() throws IOException, ProfileResolutionException, URISyntaxException {
+ Path profileFile = Paths.get(JUNIT_TEST_PATH, "content/issue106-profile.xml");
+ assert profileFile != null;
+ Catalog catalog = resolveProfile(profileFile);
+ assertNotNull(catalog);
+ assertEquals("1.1.1", catalog.getMetadata().getOscalVersion());
+ }
}
diff --git a/src/test/resources/content/issue106-catalog.xml b/src/test/resources/content/issue106-catalog.xml
new file mode 100644
index 00000000..d32a2006
--- /dev/null
+++ b/src/test/resources/content/issue106-catalog.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ 2023-02-18T13:06:18Z
+ 2023-02-18T13:06:18Z
+ 1.1.1
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/test/resources/content/issue106-profile.xml b/src/test/resources/content/issue106-profile.xml
new file mode 100644
index 00000000..1874029d
--- /dev/null
+++ b/src/test/resources/content/issue106-profile.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ 2023-02-18T13:06:18Z
+ 2023-02-18T13:06:18Z
+ 1.1.1
+
+
+
+ c1.1
+
+
+
\ No newline at end of file