@Test
public void invokingZRangeByLexCreatesNewSpan() {

  commandCreatesNewSpan(RedisCommand.ZRANGEBYLEX,
      () -> getConnection().zRangeByLex("key".getBytes()));
  verify(mockRedisConnection()).zRangeByLex("key".getBytes());
  commandCreatesNewSpan(RedisCommand.ZRANGEBYLEX,
      () -> getConnection().zRangeByLex("key".getBytes(),
          RedisZSetCommands.Range.range()));
  verify(mockRedisConnection())
      .zRangeByLex(eq("key".getBytes()), any(RedisZSetCommands.Range.class));
  commandCreatesNewSpan(RedisCommand.ZRANGEBYLEX,
      () -> getConnection().zRangeByLex("key".getBytes(),
          RedisZSetCommands.Range.range(), RedisZSetCommands.Limit.limit()));
  verify(mockRedisConnection())
      .zRangeByLex(eq("key".getBytes()), any(RedisZSetCommands.Range.class),
          any(RedisZSetCommands.Limit.class));
}