@Test
public void deleteGuestAndUnregister() {
Consumer guestConsumer =
new Consumer("guest_consumer", "guest_consumer", owner, ct);
GuestId guest = new GuestId("guest-id", consumer);
when(guestIdCurator.findByConsumerAndId(eq(consumer),
eq(guest.getGuestId()))).thenReturn(guest);
when(consumerCurator.findByVirtUuid(guest.getGuestId(),
consumer.getOwner().getId())).thenReturn(guestConsumer);
guestIdResource.deleteGuest(consumer.getUuid(),
guest.getGuestId(), true, null);
Mockito.verify(guestIdCurator, Mockito.times(1)).delete(eq(guest));
Mockito.verify(consumerResource, Mockito.never())
.revokeGuestEntitlementsNotMatchingHost(eq(consumer), eq(guestConsumer));
Mockito.verify(consumerResource, Mockito.times(1))
.deleteConsumer(eq(guestConsumer.getUuid()), any(Principal.class));