### Question:
MarkdownLines { void removeLinesForRule(final Rule pRule) { for (int i = 0; i < pRule.getLinesConsumed(); i++) { mLines.remove(0); } } MarkdownLines(final String pMarkdown);   }### Answer:
@Test public void removeLinesForRule() { Rule rule = INSTANCE.mock(Rule.class); every(mockKMatcherScope -> rule.getLinesConsumed()) .returns(20); assertEquals(453, sot.getLines().size()); sot.removeLinesForRule(rule); assertEquals(433, sot.getLines().size()); }