@Test
public void test_updateMetadata1_failed() throws JsonProcessingException {

    String token = "7QPMPIGiyDFlJkrK3jFykUqa";
    Map<String,String> params = new HashMap<String,String>();
    params.put("status", "Revoked");
    String path = SSLCertificateConstants.SSL_CERT_PATH + "/testCert";
   
    Response response = getMockResponse(HttpStatus.BAD_REQUEST, false, "");
    when(reqProcessor.process(eq("/write"),Mockito.any(),eq(token))).thenReturn(response);
    Boolean isUpdated = ControllerUtil.updateMetaData(path, params, token);
    assertEquals(Boolean.FALSE, isUpdated);
}