public void executeNonExistentOwner() throws JobExecutionException {
OwnerClient client = mock(OwnerClient.class);
when(conn.connect(eq(OwnerClient.class), any(Credentials.class),
any(String.class))).thenReturn(client);
ClientResponse<Owner> resp = mock(ClientResponse.class);
when(client.replicateOwner(eq("doesnotexist"))).thenReturn(resp);
when(resp.getStatus()).thenReturn(404);
JobDataMap map = new JobDataMap();
map.put("owner_key", "doesnotexist");
map.put("uri", "http://foo.example.com/candlepin");