Response drsp = mock(Response.class);
when(oclient.replicateOwner(eq("admin"))).thenReturn(resp);
when(oclient.replicatePools(eq("admin"))).thenReturn(prsp);
when(oclient.replicateEntitlements(eq("admin"))).thenReturn(ersp);
when(oclient.replicateConsumers(eq("admin"))).thenReturn(crsp);
when(oclient.deleteOwner(eq("admin"), eq(false))).thenReturn(drsp);
when(conclient.replicateEntitlements(eq("357ec012"),
any(String.class))).thenReturn(ersp);
when(resp.getStatus()).thenReturn(200);
when(prsp.getStatus()).thenReturn(200);