MockErrorCommand errorCommand = null;
if (memcachedClient.getProtocol() == Protocol.Text) {
errorCommand = new MockErrorTextGetOneCommand(key, key.getBytes(),
CommandType.GET_ONE, latch);
} else {
errorCommand = new MockErrorBinaryGetOneCommand(key,
key.getBytes(), CommandType.GET_ONE, latch, OpCode.GET,
false);
}
memcachedClient.getConnector().send((Command) errorCommand);
latch.await(MemcachedClient.DEFAULT_OP_TIMEOUT, TimeUnit.MILLISECONDS);