final long partition = RandomUtils.nextLong(0,Long.MAX_VALUE);
final PropertyType type1 = PropertyType.LIST, type2 = PropertyType.SET;
final int year = 2014;
manager.insert(new ClusteredEntityForTranscoding(partition, type1, year, bytes1));
manager.insert(new ClusteredEntityForTranscoding(partition, type1, year, bytes2));
manager.insert(new ClusteredEntityForTranscoding(partition, type2, year, bytes1));
manager.insert(new ClusteredEntityForTranscoding(partition, type2, year, bytes2));
//When
final List<ClusteredEntityForTranscoding> result = manager.sliceQuery(ClusteredEntityForTranscoding.class)
.forSelect()
.withPartitionComponents(partition)
.andPartitionComponentsIN(type1, type2)
.withClusterings(year)
.andClusteringsIN(bytes1, bytes2)
.get(10);
//Then
assertThat(result).hasSize(4);
final ClusteredEntityForTranscoding first = result.get(0);
assertThat(first.getId().getId()).isEqualTo(partition);
assertThat(first.getId().getType()).is(typeValueCheck);
assertThat(first.getId().getYear()).isEqualTo(year);
assertThat(first.getId().getBytes()).is(bytesValueCheck);
final ClusteredEntityForTranscoding second = result.get(1);
assertThat(second.getId().getId()).isEqualTo(partition);
assertThat(second.getId().getType()).is(typeValueCheck);
assertThat(second.getId().getYear()).isEqualTo(year);
assertThat(second.getId().getBytes()).is(bytesValueCheck);
final ClusteredEntityForTranscoding third = result.get(2);
assertThat(third.getId().getId()).isEqualTo(partition);
assertThat(third.getId().getType()).is(typeValueCheck);
assertThat(third.getId().getYear()).isEqualTo(year);
assertThat(third.getId().getBytes()).is(bytesValueCheck);
final ClusteredEntityForTranscoding fourth = result.get(3);
assertThat(fourth.getId().getId()).isEqualTo(partition);
assertThat(fourth.getId().getType()).is(typeValueCheck);
assertThat(fourth.getId().getYear()).isEqualTo(year);
assertThat(fourth.getId().getBytes()).is(bytesValueCheck);
}