ManagedObjectRepresentation mo1 = inventory.create(aSampleMo().withName("MO1").build());
ManagedObjectRepresentation mo3 = inventory.create(aSampleMo().withName("MO3").build());
inventory.create(aSampleMo().withName("MO2").build());
// When
List gidsList = new ArrayList();
gidsList.add(mo3.getId());
gidsList.add(mo1.getId());
ManagedObjectCollectionRepresentation moCollection = (ManagedObjectCollectionRepresentation) inventory.getManagedObjectsByListOfIds(gidsList).get();
// Then
List mos = moCollection.getManagedObjects();
assertThat(mos.size()).isEqualTo(2);