@Test
public void test_generateSSLCertificate_success() {

    TargetSystem targetSystem = new TargetSystem();
    targetSystem.setAddress("Target System address");
    targetSystem.setDescription("Target System Description");
    targetSystem.setName("Target Name");
    TargetSystemServiceRequest targetSystemServiceRequest = new TargetSystemServiceRequest();
    targetSystemServiceRequest.setHostname("Target System Service Host name");
    targetSystemServiceRequest.setName("Target System Service Name");
    targetSystemServiceRequest.setPort(443);
    targetSystemServiceRequest.setMultiIpMonitoringEnabled(false);
    targetSystemServiceRequest.setMonitoringEnabled(false);
    targetSystemServiceRequest.setDescription("Target Service Description");
    sSLCertificateRequest.setCertificateName("CertificateName");
    sSLCertificateRequest.setTargetSystem(targetSystem);
    sSLCertificateRequest.setTargetSystemServiceRequest(targetSystemServiceRequest);
   when(sslCertificateService.generateSSLCertificate(sSLCertificateRequest,userDetails,token)).thenReturn(new ResponseEntity<>(HttpStatus.OK));
   assertEquals(HttpStatus.OK, sslCertificateService.generateSSLCertificate(sSLCertificateRequest,userDetails,token).getStatusCode());
}