@Test
public void test_generateSSLCertificate_success_Test() {

    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));
    when(httpServletRequest.getAttribute("UserDetails")).thenReturn(userDetails);
    assertEquals(HttpStatus.OK, SslCertificateController.generateSSLCertificate(httpServletRequest, token, sSLCertificateRequest).getStatusCode());
}