### Question:
GenerateIdController implements Controller<GenerateIdRequest, GenerateIdResponse> { @Override @Timer("generateId") public GenerateIdResponse process(GenerateIdRequest request) throws NotFoundException, SystemException, UserException { logger.info("generate {} id for {}", request.getCount(), request.getUserName()); GenerateIdResponse.Builder response = GenerateIdResponse.newBuilder(); try{ Optional<List<Id>> ids = cocolianIdGenerator.generateIdBatch(request.getCount()); if(ids.isPresent()){ ids.get().forEach(id->{ response.addId(id.getId()); }); } }catch (InvalidBatchSizeException e){ logger.error(e.getMessage()); throw new SystemException().setMessage(e.getMessage()); } return response.build(); }  @Override @Timer("generateId") GenerateIdResponse process(GenerateIdRequest request);  }### Answer:
@Test public void testGen() throws Exception { GenerateIdRequest.Builder request = GenerateIdRequest .newBuilder(); request.setUserName("payment"); request.setPassword("123456"); request.setEntityType(1); request.setCount(5); GenerateIdResponse response = controller.process(request .build()); System.out.println("idCount:{}" + response.getIdCount()); Assert.assertEquals(response.getIdCount(), request.getCount()); }