Cursor<StringTuple> tuples = connection.zScan("myset", ScanOptions.NONE);
int count = 0;
while (tuples.hasNext()) {
StringTuple tuple = tuples.next();
assertThat(tuple.getValueAsString(), anyOf(equalTo("Bob"), equalTo("James"), equalTo("Joe")));
assertThat(tuple.getScore(), anyOf(equalTo(1D), equalTo(2D), equalTo(4D)));
count++;
}
assertThat(count, equalTo(3));