/** * Create a single test client. * * @param id the client id * @return the client * @throws Exception */ TestUpdateWrapper createTestClient(final int id, final TestOperationHandler handler) throws Exception { final TransactionalProtocolClient client = createClient(); final MockController controller = transferQueue.take(); controller.handler = handler; return new TestUpdateWrapper(id, client, controller); }