public MockDsl send(AbstractDecoratedProtocolMessage protocol) { mockery.send(protocol.getProtocol(), getQualifiedName()); return this; }
public MockDsl expects(AbstractDecoratedProtocolMessage... protocols) { for (AbstractDecoratedProtocolMessage p : protocols) { mockery.expect(Expr.create(p.toString()), getQualifiedName()); } return this; }