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

  UUID currentUserID = UUID.randomUUID();
  OriginEntity origin = new OriginEntity()
          .setId(currentUserID)
          .addFlag(OriginEntity.Flag.Deleted);
  when(securityContext.getCurrentUserID()).thenReturn(currentUserID);
  when(originManager.getOrigin(currentUserID)).thenReturn(origin);
  handler.resolveOrigin(null);
}