@Override
    public Tuple zPopMin(byte[] key) {
        Assert.notNull(key, "Key must not be null!");

        return write(key, ByteArrayCodec.INSTANCE, ZPOPMIN, (Object) key);
    }
@Test
    public void testZPopMin() {
        connection.zAdd("key".getBytes(), 1, "value1".getBytes());
        connection.zAdd("key".getBytes(), 2, "value2".getBytes());

        RedisZSetCommands.Tuple r = connection.zPopMin("key".getBytes());
        assertThat(r.getValue()).isEqualTo("value1".getBytes());
        assertThat(r.getScore()).isEqualTo(1);
    }