@Test(description = "This method tests the updateConfiguration method under negative conditions.",
        dependsOnMethods = {"testGetConfigurationWithSuccessConditions"})

public void testUpdateConfigurationUnderNegativeConditions() throws ConfigurationManagementException {
    Mockito.reset(platformConfigurationManagementService);
    PowerMockito.stub(PowerMockito.method(DeviceMgtAPIUtils.class, "getPlatformConfigurationManagementService"))
            .toReturn(platformConfigurationManagementService);
    Mockito.doThrow(new ConfigurationManagementException()).when(platformConfigurationManagementService)
            .saveConfiguration(Mockito.any(), Mockito.any());
    Response response = configurationManagementService.updateConfiguration(platformConfiguration);
    Assert.assertEquals(response.getStatus(), Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(),
            "updateConfiguration request succeeded with in-valid parameters");
}