@Test
public void getALLCertificate_Succes()throws Exception{

	 String token = "12345";
     Response response =getMockResponse(HttpStatus.OK, true, "{  \"data\":{  \"keys\": [    {      \"akamid\": \"102463\",      \"applicationName\": \"tvs\", "
      		+ "     \"applicationOwnerEmailId\": \"abcdef@mail.com\",      \"applicationTag\": \"TVS\",  "
      		+ "    \"authority\": \"T-Mobile Issuing CA 01 - SHA2\",      \"certCreatedBy\": \"rob\",     "
      		+ " \"certOwnerEmailId\": \"ntest@gmail.com\",      \"certType\": \"internal\",     "
      		+ " \"certificateId\": 59480,      \"certificateName\": \"CertificateName.t-mobile.com\",   "
      		+ "   \"certificateStatus\": \"Active\",      \"containerName\": \"VenafiBin_12345\",    "
      		+ "  \"createDate\": \"2020-06-24T03:16:29-07:00\",      \"expiryDate\": \"2021-06-24T03:16:29-07:00\",  "
      		+ "    \"projectLeadEmailId\": \"project@email.com\"    }  ]}}");
     Response certResponse =getMockResponse(HttpStatus.OK, true, "{  \"data\": {  \"keys\": [    \"CertificateName.t-mobile.com\"    ]  }}");
     token = "5PDrOhsy4ig8L3EpsJZSLAMg";
     UserDetails user1 = new UserDetails();
     user1.setUsername("normaluser");
     user1.setAdmin(true);
     user1.setClientToken(token);
     user1.setSelfSupportToken(token);
     when(reqProcessor.process(Mockito.eq("/sslcert"),Mockito.anyString(),Mockito.eq(token))).thenReturn(certResponse);
     when(reqProcessor.process("/sslcert", "{\"path\":\"metadata/sslcerts/CertificateName.t-mobile.com\"}",token)).thenReturn(response);
     ResponseEntity<String> responseEntityActual = sSLCertificateService.getAllCertificates(token, "",1,0);
     assertEquals(HttpStatus.OK, responseEntityActual.getStatusCode());
}