List<String> expected) {
Compiler compiler = new Compiler();
List<Node> replacements = Lists.newArrayList();
GetReplacementSideEffectSubexpressions accumulator =
new GetReplacementSideEffectSubexpressions(compiler, replacements);
accumulator.keepSimplifiedShortCircuitExpression(root);
List<String> actual = Lists.newArrayList();
for (Node replacement : replacements) {
actual.add(compiler.toSource(replacement));
}