// Path: strategy/src/main/java/com/msd/gin/halyard/vocab/VOID_EXT.java
// public final class VOID_EXT {
// 
//     VOID_EXT(){}
// 
//     public static final String PREFIX = "void-ext";
// 
//     public static final String NAMESPACE = "http://ldf.fi/void-ext#";
// 
//     private static final SimpleValueFactory SVF = SimpleValueFactory.getInstance();
// 
//     public static final IRI DISTINCT_IRI_REFERENCE_SUBJECTS = SVF.createIRI(NAMESPACE, "distinctIRIReferenceSubjects");
// 
//     public static final IRI DISTINCT_IRI_REFERENCE_OBJECTS = SVF.createIRI(NAMESPACE, "distinctIRIReferenceObjects");
// 
//     public static final IRI DISTINCT_BLANK_NODE_OBJECTS = SVF.createIRI(NAMESPACE, "distinctBlankNodeObjects");
// 
//     public static final IRI DISTINCT_BLANK_NODE_SUBJECTS = SVF.createIRI(NAMESPACE, "distinctBlankNodeSubjects");
// 
//     public static final IRI DISTINCT_LITERALS = SVF.createIRI(NAMESPACE, "distinctLiterals");
// 
//     public static final IRI SUBJECT = SVF.createIRI(NAMESPACE, "subject");
// 
//     public static final IRI SUBJECT_PARTITION = SVF.createIRI(NAMESPACE, "subjectPartition");
// 
//     public static final IRI OBJECT = SVF.createIRI(NAMESPACE, "object");
// 
//     public static final IRI OBJECT_PARTITION = SVF.createIRI(NAMESPACE, "objectPartition");
// 
// }
// 
// Path: strategy/src/main/java/com/msd/gin/halyard/vocab/HALYARD.java
// public final class HALYARD {
// 
//     HALYARD() {}
// 
//     private static final SimpleValueFactory SVF = SimpleValueFactory.getInstance();
// 
//     public static final String PREFIX = "halyard";
// 
//     public static final String NAMESPACE = "http://merck.github.io/Halyard/ns#";
// 
//     public static final IRI STATS_ROOT_NODE = SVF.createIRI(NAMESPACE, "statsRoot");
// 
//     public static final IRI STATS_GRAPH_CONTEXT = SVF.createIRI(NAMESPACE, "statsContext");
// 
//     public static final IRI SYSTEM_GRAPH_CONTEXT = SVF.createIRI(NAMESPACE, "system");
// 
//     public static final IRI NAMESPACE_PREFIX_PROPERTY = HALYARD.SVF.createIRI(NAMESPACE, "namespacePrefix");
// 
//     public final static IRI TABLE_NAME_PROPERTY = SVF.createIRI(NAMESPACE, "tableName");
// 
//     public final static IRI SPLITBITS_PROPERTY = SVF.createIRI(NAMESPACE, "splitBits");
// 
//     public final static IRI CREATE_TABLE_PROPERTY = SVF.createIRI(NAMESPACE, "createTable");
// 
//     public final static IRI PUSH_STRATEGY_PROPERTY = SVF.createIRI(NAMESPACE, "pushStrategy");
// 
//     public final static IRI EVALUATION_TIMEOUT_PROPERTY = SVF.createIRI(NAMESPACE, "evaluationTimeout");
// 
//     public final static IRI ELASTIC_INDEX_URL_PROPERTY = SVF.createIRI(NAMESPACE, "elasticIndexURL");
// 
//     public final static IRI SEARCH_TYPE = SVF.createIRI(NAMESPACE, "search");
// 
//     public final static IRI PARALLEL_SPLIT_FUNCTION = SVF.createIRI(NAMESPACE, "forkAndFilterBy");
// 
// }


import com.msd.gin.halyard.vocab.VOID_EXT;
import com.msd.gin.halyard.vocab.HALYARD;
import org.eclipse.rdf4j.model.IRI;
import org.eclipse.rdf4j.model.Literal;
import org.eclipse.rdf4j.model.impl.SimpleValueFactory;
import org.eclipse.rdf4j.model.impl.TreeModel;
import org.eclipse.rdf4j.repository.config.RepositoryConfigSchema;
import org.eclipse.rdf4j.repository.sail.config.SailRepositorySchema;
import org.eclipse.rdf4j.sail.config.SailConfigException;
import org.eclipse.rdf4j.sail.config.SailConfigSchema;
import org.junit.Test;
import static org.junit.Assert.*;
        cfg.setSplitBits(5);
        cfg.setCreate(true);
        cfg.setPush(true);
        TreeModel g = new TreeModel();
        cfg.export(g);
        cfg = new HBaseSailConfig();
        cfg.parse(g, null);
        assertNull(cfg.getTablespace());
        assertEquals(5, cfg.getSplitBits());
        assertTrue(cfg.isCreate());
        assertTrue(cfg.isPush());
        assertEquals("", cfg.getElasticIndexURL());
    }

    @Test
    public void testParseEmpty() throws Exception {
        TreeModel g = new TreeModel();
        HBaseSailConfig cfg = new HBaseSailConfig();
        cfg.parse(g, null);
        assertNull(cfg.getTablespace());
        assertEquals(0, cfg.getSplitBits());
        assertTrue(cfg.isCreate());
        assertTrue(cfg.isPush());
        assertEquals("", cfg.getElasticIndexURL());
    }

    @Test
    public void testEmptyTableSpace() throws Exception {
        TreeModel g = new TreeModel();
        IRI node = SimpleValueFactory.getInstance().createIRI("http://node");
// Path: strategy/src/main/java/com/msd/gin/halyard/vocab/VOID_EXT.java
// public final class VOID_EXT {
// 
//     VOID_EXT(){}
// 
//     public static final String PREFIX = "void-ext";
// 
//     public static final String NAMESPACE = "http://ldf.fi/void-ext#";
// 
//     private static final SimpleValueFactory SVF = SimpleValueFactory.getInstance();
// 
//     public static final IRI DISTINCT_IRI_REFERENCE_SUBJECTS = SVF.createIRI(NAMESPACE, "distinctIRIReferenceSubjects");
// 
//     public static final IRI DISTINCT_IRI_REFERENCE_OBJECTS = SVF.createIRI(NAMESPACE, "distinctIRIReferenceObjects");
// 
//     public static final IRI DISTINCT_BLANK_NODE_OBJECTS = SVF.createIRI(NAMESPACE, "distinctBlankNodeObjects");
// 
//     public static final IRI DISTINCT_BLANK_NODE_SUBJECTS = SVF.createIRI(NAMESPACE, "distinctBlankNodeSubjects");
// 
//     public static final IRI DISTINCT_LITERALS = SVF.createIRI(NAMESPACE, "distinctLiterals");
// 
//     public static final IRI SUBJECT = SVF.createIRI(NAMESPACE, "subject");
// 
//     public static final IRI SUBJECT_PARTITION = SVF.createIRI(NAMESPACE, "subjectPartition");
// 
//     public static final IRI OBJECT = SVF.createIRI(NAMESPACE, "object");
// 
//     public static final IRI OBJECT_PARTITION = SVF.createIRI(NAMESPACE, "objectPartition");
// 
// }
// 
// Path: strategy/src/main/java/com/msd/gin/halyard/vocab/HALYARD.java
// public final class HALYARD {
// 
//     HALYARD() {}
// 
//     private static final SimpleValueFactory SVF = SimpleValueFactory.getInstance();
// 
//     public static final String PREFIX = "halyard";
// 
//     public static final String NAMESPACE = "http://merck.github.io/Halyard/ns#";
// 
//     public static final IRI STATS_ROOT_NODE = SVF.createIRI(NAMESPACE, "statsRoot");
// 
//     public static final IRI STATS_GRAPH_CONTEXT = SVF.createIRI(NAMESPACE, "statsContext");
// 
//     public static final IRI SYSTEM_GRAPH_CONTEXT = SVF.createIRI(NAMESPACE, "system");
// 
//     public static final IRI NAMESPACE_PREFIX_PROPERTY = HALYARD.SVF.createIRI(NAMESPACE, "namespacePrefix");
// 
//     public final static IRI TABLE_NAME_PROPERTY = SVF.createIRI(NAMESPACE, "tableName");
// 
//     public final static IRI SPLITBITS_PROPERTY = SVF.createIRI(NAMESPACE, "splitBits");
// 
//     public final static IRI CREATE_TABLE_PROPERTY = SVF.createIRI(NAMESPACE, "createTable");
// 
//     public final static IRI PUSH_STRATEGY_PROPERTY = SVF.createIRI(NAMESPACE, "pushStrategy");
// 
//     public final static IRI EVALUATION_TIMEOUT_PROPERTY = SVF.createIRI(NAMESPACE, "evaluationTimeout");
// 
//     public final static IRI ELASTIC_INDEX_URL_PROPERTY = SVF.createIRI(NAMESPACE, "elasticIndexURL");
// 
//     public final static IRI SEARCH_TYPE = SVF.createIRI(NAMESPACE, "search");
// 
//     public final static IRI PARALLEL_SPLIT_FUNCTION = SVF.createIRI(NAMESPACE, "forkAndFilterBy");
// 
// }


// Path: sail/src/test/java/com/msd/gin/halyard/sail/HBaseSailConfigTest.java
import com.msd.gin.halyard.vocab.VOID_EXT;
import com.msd.gin.halyard.vocab.HALYARD;
import org.eclipse.rdf4j.model.IRI;
import org.eclipse.rdf4j.model.Literal;
import org.eclipse.rdf4j.model.impl.SimpleValueFactory;
import org.eclipse.rdf4j.model.impl.TreeModel;
import org.eclipse.rdf4j.repository.config.RepositoryConfigSchema;
import org.eclipse.rdf4j.repository.sail.config.SailRepositorySchema;
import org.eclipse.rdf4j.sail.config.SailConfigException;
import org.eclipse.rdf4j.sail.config.SailConfigSchema;
import org.junit.Test;
import static org.junit.Assert.*;

        cfg.setSplitBits(5);
        cfg.setCreate(true);
        cfg.setPush(true);
        TreeModel g = new TreeModel();
        cfg.export(g);
        cfg = new HBaseSailConfig();
        cfg.parse(g, null);
        assertNull(cfg.getTablespace());
        assertEquals(5, cfg.getSplitBits());
        assertTrue(cfg.isCreate());
        assertTrue(cfg.isPush());
        assertEquals("", cfg.getElasticIndexURL());
    }

    @Test
    public void testParseEmpty() throws Exception {
        TreeModel g = new TreeModel();
        HBaseSailConfig cfg = new HBaseSailConfig();
        cfg.parse(g, null);
        assertNull(cfg.getTablespace());
        assertEquals(0, cfg.getSplitBits());
        assertTrue(cfg.isCreate());
        assertTrue(cfg.isPush());
        assertEquals("", cfg.getElasticIndexURL());
    }

    @Test
    public void testEmptyTableSpace() throws Exception {
        TreeModel g = new TreeModel();
        IRI node = SimpleValueFactory.getInstance().createIRI("http://node");
        g.add(node, HALYARD.TABLE_NAME_PROPERTY, SimpleValueFactory.getInstance().createLiteral(""));