assertTrue(results.isEmpty());
}
@Test
public void lookupByUpstreamUuid() {
Owner owner = new Owner("owner1");
// setup some data
owner = ownerCurator.create(owner);
ConsumerType type = new ConsumerType(ConsumerTypeEnum.CANDLEPIN);
consumerTypeCurator.create(type);
UpstreamConsumer uc = new UpstreamConsumer("test-upstream-consumer",
owner, type, "someuuid");
owner.setUpstreamConsumer(uc);
ownerCurator.merge(owner);
// ok let's see if this works
Owner found = ownerCurator.lookupWithUpstreamUuid("someuuid");
// verify all is well in the world
assertNotNull(found);
assertEquals(owner.getId(), found.getId());
}