private Assertion mockAssertion(QName name, int howMany, boolean normalize) {
Assertion a = control.createMock(Assertion.class);
EasyMock.expect(a.getName()).andReturn(name).times(howMany);
if (normalize) {
EasyMock.expect(a.getType()).andReturn(Constants.TYPE_ASSERTION).times(howMany);
EasyMock.expect(a.normalize()).andReturn(a).times(howMany);
}
return a;
}
@Test