@Test
public void test_authenticate_success() throws Exception {

    String jsonStr = "{  \"username\": \"testusername\",  \"password\": \"testpassword\"}";
    CertResponse response = new CertResponse();
    response.setHttpstatus(HttpStatus.OK);
    response.setResponse("Success");
    response.setSuccess(true);
    CertManagerLoginRequest certManagerLoginRequest = new CertManagerLoginRequest("testusername", "testpassword");
    when(JSONUtil.getJSON(Mockito.any())).thenReturn(jsonStr);
    when(reqProcessor.processCert(Mockito.anyString(), Mockito.anyObject(), Mockito.anyString(), Mockito.anyString())).thenReturn(response);
    ResponseEntity<String> responseEntity = sSLCertificateService.authenticate(certManagerLoginRequest);
    assertEquals(HttpStatus.OK,responseEntity.getStatusCode());
}