@Test
public void testTransientPolicy() throws Exception {

  // this should run without an exception.
  final IRDAG optimizedDAG =
    TransientResourcePolicy.BUILDER.build().runCompileTimeOptimization(dag, DAG.EMPTY_DAG_DIRECTORY);
  assertTrue(optimizedDAG.checkIntegrity().isPassed());
}