* of the database (first parameter) iff the code that created it is correct.
* @param inclusionPolicies {@link com.graphaware.common.policy.InclusionPolicies} deciding whether to include nodes/relationships/properties or not.
* @throws AssertionError in case the "cypher" graph is not a subgraph of the "database" graph.
*/
public static void assertSubgraph(GraphDatabaseService database, String subgraphCypher, InclusionPolicies inclusionPolicies) {
GraphDatabaseService otherDatabase = new TestGraphDatabaseFactory().newImpermanentDatabase();
new ExecutionEngine(otherDatabase).execute(subgraphCypher);
try {
assertSubgraph(database, otherDatabase, inclusionPolicies);