Command errorCommand = null;
if (memcachedClient.getProtocol() == Protocol.Text) {
errorCommand = new MockEncodeTimeoutTextGetOneCommand("name",
"name".getBytes(), CommandType.GET_ONE, latch, 1000);
} else {
errorCommand = new MockEncodeTimeoutBinaryGetCommand("name", "name"
.getBytes(), CommandType.GET_ONE, latch, OpCode.GET, false,
1000);
}
memcachedClient.getConnector().send(errorCommand);