}
@Test public void trans_readBlock_09()
{
// WRITE(commit)-READ(start)-WRITE(commit)-READ(finish)-check
StoreConnection sConn = getStoreConnection() ;
DatasetGraphTxn dsgW1 = sConn.begin(ReadWrite.WRITE) ;
dsgW1.add(q1) ;
dsgW1.commit() ;
dsgW1.end() ;
DatasetGraphTxn dsgR1 = sConn.begin(ReadWrite.READ) ;
DatasetGraphTxn dsgW2 = sConn.begin(ReadWrite.WRITE) ;
dsgW2.add(q2) ;
dsgW2.commit() ;
dsgW2.end() ;
DatasetGraphTxn dsgR2 = sConn.begin(ReadWrite.READ) ;
assertTrue(dsgR1.contains(q1)) ;
assertFalse(dsgR1.contains(q2)) ;
assertTrue(dsgR2.contains(q1)) ;
assertTrue(dsgR2.contains(q2)) ;
dsgR1.end() ;
dsgR2.end() ;
DatasetGraph dsg = sConn.getBaseDataset() ;
assertTrue(dsg.contains(q1)) ;
assertTrue(dsg.contains(q2)) ;
}