@Test(description = "This method tests the getConfiguration method under negative conditions")
public void testGetConfigurationUnderNegativeConditions() throws ConfigurationManagementException {

    PowerMockito.stub(PowerMockito.method(DeviceMgtAPIUtils.class, "getPlatformConfigurationManagementService"))
            .toReturn(platformConfigurationManagementService);
    Mockito.reset(platformConfigurationManagementService);
    Mockito.doThrow(new ConfigurationManagementException()).when(platformConfigurationManagementService)
            .getConfiguration(Mockito.any());
    Response response = configurationManagementService.getConfiguration("test");
    Assert.assertEquals(response.getStatus(), Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(),
            "getConfiguration request " + "succeeded under negative conditions");
}