helpTestPop(stack, null, 0);
}
public void testRemove() {
// Set up
RuleStack stack = new RuleStack();
stack.push(RuleConstants.ASSIGN_OUTPUT_ELEMENTS);
stack.push(RuleConstants.COLLAPSE_SOURCE);
stack.push(RuleConstants.ASSIGN_OUTPUT_ELEMENTS);
// Remove all instances of ASSIGN_OUTPUT_ELEMENTS
stack.remove(RuleConstants.ASSIGN_OUTPUT_ELEMENTS);
// Verify size and pop'ed values
assertEquals(1, stack.size());
assertEquals(RuleConstants.COLLAPSE_SOURCE, stack.pop());
assertEquals(null, stack.pop());
}