NCLMMockUtil { public CertificateData getDeleteCertMockResponse(Map<String, String> metaDataParams){ CertificateData certificateData = new CertificateData(); certificateData.setCertificateId(1234); certificateData.setExpiryDate(metaDataParams.get("expiryDate")); certificateData.setCreateDate(metaDataParams.get("createDate")); return certificateData; } NCLMMockUtil(); CertResponse getRevocationMockResponse(); CertificateData getRenewCertificateMockData(); CertResponse getRenewMockResponse(); CertResponse getDeleteMockResponse(); CertificateData getDeleteCertMockResponse(Map<String, String>  metaDataParams); CertManagerLogin getMockLoginDetails(); CertResponse getEnrollMockResponse(); CertificateData getMockCertificateData(SSLCertificateRequest sslCertificateRequest); CertResponse getMockRevocationReasons(); CertificateData getMockDataForRevoked();  }
@Test public void getDeleteCertMockResponse_Test() { Map<String, String> currentMap = new HashMap<>(); currentMap.put("expiryDate", "1"); currentMap.put("createDate", "2"); CertificateData certificateData1 = nclmMockUtil.getDeleteCertMockResponse(currentMap); assertNotNull(certificateData1); }