}
@Test
public void testEnum()
{
ItemType val = ItemType.OTHER;
List<Pair<Item, ItemType>> items = streams.streamAll(em, Item.class)
.where(i -> i.getType() == val || i.getType().equals(ItemType.BIG))
.select(i -> new Pair<>(i, i.getType()))
.toList();
items = items.stream().sorted((a, b) -> a.getOne().getName().compareTo(b.getOne().getName())).collect(Collectors.toList());