@Test
public void login_failure() throws Exception {

    CertResponse response = new CertResponse();
    response.setHttpstatus(HttpStatus.INTERNAL_SERVER_ERROR);
    response.setResponse("Success");
    response.setSuccess(true);
    CertManagerLoginRequest certManagerLoginRequest = new CertManagerLoginRequest("testusername", "testpassword");
    when(reqProcessor.processCert(Mockito.anyString(), Mockito.anyObject(), Mockito.anyString(),
            Mockito.anyString())).thenReturn(response);
    CertManagerLogin  certManagerLogin= sSLCertificateService.login(certManagerLoginRequest);
    assertNull(certManagerLogin);
}