// Path: src/main/java/com/_4dconcept/springframework/data/marklogic/core/mapping/MarklogicMappingContext.java
// public class MarklogicMappingContext extends AbstractMappingContext<BasicMarklogicPersistentEntity<?>, MarklogicPersistentProperty> {
// 
//     @Override
//     protected <T> BasicMarklogicPersistentEntity<T> createPersistentEntity(TypeInformation<T> typeInformation) {
//         return new BasicMarklogicPersistentEntity<>(typeInformation);
//     }
// 
//     @Override
//     protected MarklogicPersistentProperty createPersistentProperty(Property property,
//             BasicMarklogicPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) {
//         return new BasicMarklogicPersistentProperty(property, owner, simpleTypeHolder);
//     }
// }


import com._4dconcept.springframework.data.marklogic.core.mapping.Collection;
import com._4dconcept.springframework.data.marklogic.core.mapping.MarklogicMappingContext;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.MatcherAssert.assertThat;
package com._4dconcept.springframework.data.marklogic;



public class MarklogicCollectionUtilsTest {

    private MarklogicCollectionUtils marklogicCollectionUtils = new MarklogicCollectionUtils() {};

    @Test
    public void extractCollections() {
// Path: src/main/java/com/_4dconcept/springframework/data/marklogic/core/mapping/MarklogicMappingContext.java
// public class MarklogicMappingContext extends AbstractMappingContext<BasicMarklogicPersistentEntity<?>, MarklogicPersistentProperty> {
// 
//     @Override
//     protected <T> BasicMarklogicPersistentEntity<T> createPersistentEntity(TypeInformation<T> typeInformation) {
//         return new BasicMarklogicPersistentEntity<>(typeInformation);
//     }
// 
//     @Override
//     protected MarklogicPersistentProperty createPersistentProperty(Property property,
//             BasicMarklogicPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) {
//         return new BasicMarklogicPersistentProperty(property, owner, simpleTypeHolder);
//     }
// }


// Path: src/test/java/com/_4dconcept/springframework/data/marklogic/MarklogicCollectionUtilsTest.java
import com._4dconcept.springframework.data.marklogic.core.mapping.Collection;
import com._4dconcept.springframework.data.marklogic.core.mapping.MarklogicMappingContext;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.MatcherAssert.assertThat;

package com._4dconcept.springframework.data.marklogic;



public class MarklogicCollectionUtilsTest {

    private MarklogicCollectionUtils marklogicCollectionUtils = new MarklogicCollectionUtils() {};

    @Test
    public void extractCollections() {
        assertThat(marklogicCollectionUtils.extractCollections(new SampleEntity("test1", "test2"), new MarklogicMappingContext()), containsInAnyOrder("test1", "field:test2", "computed:TEST1"));