public void testParseFlushingModel() {
Element element = new DomElementStub("flushing");
element.setAttribute("when", "after");
FlushingModel expected = new MockFlushingModel();
parser.doParseFlushingModel(element, false);
parserControl.setReturnValue(expected);
parserControl.replay();
FlushingModel actual = parser.parseFlushingModel(element);
assertSame(expected, actual);
parserControl.verify();
}