ApiClientBO { public void create(ApiClientCreateRequest apiClientRequest) { create(apiClientRequest, null, null); } ApiClientBO(); void create(ApiClientCreateRequest apiClientRequest); void create(ApiClientCreateRequest apiClientRequest, String userUuid, String userCertUuid); ObjectMapper getUserCommentMapper(); void update(ApiClientUpdateRequest apiClientRequest, String uuid); void delete(ApiClientUpdateRequest apiClientRequest, String uuid); void updateV2(ApiClientUpdateRequest apiClientRequest); ApiClientInfo find(byte[] fingerprint); List<ApiClientInfo> search(ApiClientSearchCriteria criteria);  }
@Test public void testCreate() throws CertificateException, IOException { try { ApiClientCreateRequest apiClientRequest = new ApiClientCreateRequest(); apiClientRequest.setCertificate(readCertificate("C:/work/temp/mw-0.5.2-integration-new/services/ManagementService/src/test/java/com/intel/mountwilson/ms/business/206.cer").getBytes()); apiClientRequest.setRoles(new String[]{Role.Security.toString()}); new ApiClientBO().create(apiClientRequest); } catch (Exception e) { e.printStackTrace(); } }