}
@Test
public void testGetHypervisorsByOwner() {
Consumer consumer = new Consumer("testConsumer", "testUser", owner, ct);
consumer.setHypervisorId(new HypervisorId("hypervisor"));
consumer = consumerCurator.create(consumer);
Owner otherOwner = ownerCurator.create(new Owner("other owner"));
Consumer consumer2 = new Consumer("testConsumer2", "testUser2", otherOwner, ct);
consumer2.setHypervisorId(new HypervisorId("hypervisortwo"));
consumer2 = consumerCurator.create(consumer2);
Consumer nonHypervisor = new Consumer("testConsumer3", "testUser3", owner, ct);
nonHypervisor = consumerCurator.create(nonHypervisor);
List<Consumer> results = consumerCurator.getHypervisorsForOwner(owner.getKey());
assertEquals(1, results.size());