@Test(expected = InvalidArgumentException.class)
public void testResolveOriginProvidedFetchesDeletedOrigin() throws Exception {

  UUID originID = UUID.randomUUID();
  OriginEntity origin = new OriginEntity()
          .setId(originID)
          .addFlag(OriginEntity.Flag.Deleted);
  when(originManager.getOrigin(originID)).thenReturn(origin);
  handler.resolveOrigin(originID.toString());
}