/*
 * Copyright 2022 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.bremersee.comparator;

import static org.assertj.core.api.Assertions.assertThat;

import java.util.Collection;
import javax.xml.bind.annotation.XmlSchema;
import org.assertj.core.api.SoftAssertions;
import org.assertj.core.api.junit.jupiter.SoftAssertionsExtension;
import org.bremersee.comparator.model.ObjectFactory;
import org.bremersee.xml.JaxbContextData;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;

/**
 * The comparator jaxb context data provider test.
 *
 * @author Christian Bremer
 */
@ExtendWith(SoftAssertionsExtension.class)
class ComparatorJaxbContextDataProviderTest {

  /**
   * Namespace.
   */
  @Test
  void namespace() {
    XmlSchema schema = ObjectFactory.class.getPackage().getAnnotation(XmlSchema.class);
    assertThat(schema)
        .isNotNull()
        .extracting(XmlSchema::namespace)
        .isEqualTo(ComparatorJaxbContextDataProvider.NAMESPACE);
  }

  /**
   * Gets jaxb context data.
   *
   * @param softly the soft assertions
   */
  @Test
  void getJaxbContextData(SoftAssertions softly) {
    ComparatorJaxbContextDataProvider target = new ComparatorJaxbContextDataProvider();
    Collection<JaxbContextData> actual = target.getJaxbContextData();
    softly.assertThat(actual)
        .containsExactly(new JaxbContextData(ObjectFactory.class.getPackage()));
    softly.assertThat(actual)
        .map(JaxbContextData::getNameSpace)
        .containsExactly(ComparatorJaxbContextDataProvider.NAMESPACE);
  }
}
@@ -702,16 +702,98 @@
 ertThat;
+%0Aimport static org.springframework.core.annotation.AnnotationUtils.findAnnotation;
 %0A%0Aimport
@@ -1412,16 +1412,31 @@
 chema = 
+findAnnotation(
 ObjectFa
@@ -1463,23 +1463,10 @@
 ge()
-.getAnnotation(
+, 
 XmlS

Version 3.0.0-SNAPSHOT