Rename getProtocol to getMechanism in TestClient