private void assertDescribedResource(final BigdataValue describedResource,final IDescribeCache describeCache,final TestHelper h){
  final Graph actualGraph=describeCache.lookup(describedResource.getIV());
  assertNotNull(actualGraph);
  final Set<Statement> expectedGraph=getExpectedDescription(describedResource,h);
  h.compareGraphs(new HashSet<Statement>(actualGraph),expectedGraph);
  for (  Statement stmt : actualGraph) {
    assertTrue(stmt instanceof BigdataStatement);
    final BigdataStatement st=(BigdataStatement)stmt;
    assertNotNull(st.s());
    assertNotNull(st.p());
    assertNotNull(st.o());
    if (st.getContext() != null) {
      assertNotNull(st.c());
    }
  }
}

private void assertDescribedResource ( final BigdataValue describedResource , final IDescribeCache describeCache , final TestHelper h ) { final Graph actualGraph = describeCache . lookup ( describedResource . getIV ( ) ) ; assertNotNull ( actualGraph ) ; final Set < Statement > expectedGraph = getExpectedDescription ( describedResource , h ) ; h . compareGraphs ( new HashSet < Statement > ( actualGraph ) , expectedGraph ) ; for ( Statement stmt : actualGraph ) { assertTrue ( stmt instanceof BigdataStatement ) ; final BigdataStatement st = ( BigdataStatement ) stmt ; assertNotNull ( st . s ( ) ) ; assertNotNull ( st . p ( ) ) ; assertNotNull ( st . o ( ) ) ; if ( st . getContext ( ) != null ) { assertNotNull ( st . c ( ) ) ; } } }
assert that a resource is described by the cache .
