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

  CreateOriginRequest request = new CreateOriginRequest().setName("name");
  when(originManager.getOrigin(request.getName())).thenReturn(new OriginEntity());
  delegate.handle(request);
}