//
@Test
public void queryWithFragmentType() throws Exception {
// Given
inventory.create(aSampleMo().withName("MO1").with(new Coordinate()).build());
inventory.create(aSampleMo().withName("MO2").with(new SecondFragment()).build());
// When
InventoryFilter filter = new InventoryFilter().byFragmentType(Coordinate.class);
ManagedObjectCollectionRepresentation coordinates = (ManagedObjectCollectionRepresentation) inventory.getManagedObjectsByFilter(filter).get();