@Test
public void testGetCertificateMetaDataInvalidResponse() {

    UserDetails userDetails = getMockUser(true);
    userDetails.setUsername(ADMIN_USER);        
    String certType = "internal";
    String certificatePath = SSLCertificateConstants.SSL_CERT_PATH  + '/' + CERT_NAME;       
    Response responseObj = getMockResponse(HttpStatus.INTERNAL_SERVER_ERROR, true, "{}");         
    when(ControllerUtil.getReqProcessor().process(GET_CERT_DETAIL, GET_CERT_DETAIL_VAL +certificatePath+"\"}",userDetails.getClientToken())).thenReturn(responseObj);
    SSLCertificateMetadataDetails certificateMetadataObj = certificateUtils.getCertificateMetaData(userDetails.getClientToken(),CERT_NAME,certType);
    assertEquals(certificateMetadataObj, null);
}