@Test
public void invokingZRangeByScoreCreatesNewSpan() {

  commandCreatesNewSpan(RedisCommand.ZRANGEBYSCORE,
      () -> getConnection().zRangeByScore("key".getBytes(), 0D, 0D, 0L,
          0L));
  verify(mockRedisConnection()).zRangeByScore("key".getBytes(), 0D, 0D, 0L, 0L);
  commandCreatesNewSpan(RedisCommand.ZRANGEBYSCORE,
      () -> getConnection().zRangeByScore("key".getBytes(),
          "min", "max"));
  verify(mockRedisConnection()).zRangeByScore("key".getBytes(), "min", "max");
  commandCreatesNewSpan(RedisCommand.ZRANGEBYSCORE,
      () -> getConnection().zRangeByScore("key".getBytes(),
          RedisZSetCommands.Range.range()));
  verify(mockRedisConnection())
      .zRangeByScore(eq("key".getBytes()), any(RedisZSetCommands.Range.class));
  commandCreatesNewSpan(RedisCommand.ZRANGEBYSCORE,
      () -> getConnection().zRangeByScore("key".getBytes(),
          "min", "max", 0L, 0L));
  verify(mockRedisConnection()).zRangeByScore("key".getBytes(), "min", "max", 0L, 0L);
  commandCreatesNewSpan(RedisCommand.ZRANGEBYSCORE,
      () -> getConnection().zRangeByScore("key".getBytes(),
          RedisZSetCommands.Range.range(), RedisZSetCommands.Limit.limit()));
  verify(mockRedisConnection())
      .zRangeByScore(eq("key".getBytes()), any(RedisZSetCommands.Range.class),
          any(RedisZSetCommands.Limit.class));
}