/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you 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.apache.commons.rdf.simple;

import org.apache.commons.rdf.api.AbstractDatasetTest;
import org.apache.commons.rdf.api.RDF;

/**
 * Test SimpleRDF with AbstractGraphTest
 */
public class SimpleDatasetTest extends AbstractDatasetTest {

    @Override
    public RDF createFactory() {
        return new SimpleRDF();
    }
//
//    @Test
//    public void graphToString() {
//        Assume.assumeNotNull(aliceName, companyName);
//        // System.out.println(graph);
//        assertTrue(
//                graph.toString().contains("<http://example.com/alice> <http://xmlns.com/foaf/0.1/name> \"Alice\" ."));
//        assertTrue(graph.toString().contains(" <http://xmlns.com/foaf/0.1/name> \"A company\" ."));
//
//    }

}

@@ -838,16 +838,51 @@
 imple;%0A%0A
+import static org.junit.Assert.*;%0A%0A
 import o
@@ -966,16 +966,64 @@
 api.RDF;
+%0Aimport org.junit.Assume;%0Aimport org.junit.Test;
 %0A%0A/**%0A *
@@ -1212,21 +1212,17 @@
 ;%0A    %7D%0A
-//%0A//
+%0A
     @Tes
@@ -1223,18 +1223,16 @@
   @Test%0A
-//
     publ
@@ -1239,21 +1239,23 @@
 ic void 
-graph
+dataset
 ToString
@@ -1259,18 +1259,16 @@
 ing() %7B%0A
-//
         
@@ -1313,18 +1313,16 @@
 yName);%0A
-//
         
@@ -1323,17 +1323,16 @@
       //
- 
 System.o
@@ -1346,18 +1346,18 @@
 tln(
-graph
+dataset
 );%0A
-//
     
@@ -1372,18 +1372,16 @@
 rtTrue(%0A
-//
         
@@ -1388,21 +1388,23 @@
         
-graph
+dataset
 .toStrin
@@ -1486,25 +1486,51 @@
 %22Alice%5C%22
+ %3Chttp://example.com/graph1%3E
  .%22));%0A
-//
         
@@ -1540,21 +1540,23 @@
 ertTrue(
-graph
+dataset
 .toStrin
@@ -1621,19 +1621,170 @@
 y%5C%22 
-.
+_:
 %22));%0A
-//%0A//
+        assertTrue(dataset.toString().contains(%22%3Chttp://example.com/alice%3E %3Chttp://xmlns.com/foaf/0.1/isPrimaryTopicOf%3E %3Chttp://example.com/graph1%3E .%22));%0A%0A
     

test dataset.toString()