public void setUp() {
i18n = I18nFactory.getI18n(getClass(), Locale.US, I18nFactory.FALLBACK);
owner = new Owner("test-owner", "Test Owner");
ct = new ConsumerType(ConsumerTypeEnum.SYSTEM);
consumer = new Consumer("consumer", "test", owner, ct);
guestIdResource = new GuestIdResource(guestIdCurator,
consumerCurator, consumerResource, i18n, eventFactory, sink);
when(consumerCurator.findByUuid(consumer.getUuid())).thenReturn(consumer);
when(consumerCurator.verifyAndLookupConsumer(
consumer.getUuid())).thenReturn(consumer);
}