@Test
public void prepareStatementToDonateDiscardRemoved() throws Exception {

  final DonateLiveCodeTransformation dlc = getDummyTransformationObject();
  DonationContext dc = new DonationContext(new DiscardStmt(), new HashMap<>(),
      new ArrayList<>(), null);
  Stmt donated = dlc.prepareStatementToDonate(null, dc,
      TransformationProbabilities.DEFAULT_PROBABILITIES, new RandomWrapper(0),
      ShadingLanguageVersion.ESSL_100);
  assertFalse(new CheckPredicateVisitor() {
    @Override
    public void visitDiscardStmt(DiscardStmt discardStmt) {
      predicateHolds();
    }
  }.test(donated));
}