{
public Object answer(InvocationOnMock invocation)
{
Object[] args = invocation.getArguments();
GetMessageVisitor visitor = (GetMessageVisitor) args[0];
visitor.visit(entry);
return null;
}
}).when(_mockQueue).visit(Matchers.any(GetMessageVisitor.class));
//now retrieve the content and verify its size