@Optional Integer atLeast, @Optional Integer atMost)
{
try
{
MunitVerifier mockVerifier =
verifier().verifyCallOfMessageProcessor(getName(messageProcessor))
.ofNamespace(getNamespace(messageProcessor))
.withAttributes(createAttributes(attributes));
if (times != null)
{
mockVerifier.times(times);
}
else if (atLeast != null)
{
mockVerifier.atLeast(atLeast);
}
else if (atMost != null)
{
mockVerifier.atMost(atMost);
}
else
{
mockVerifier.atLeastOnce();
}
}
catch (AssertionError error)
{