@Test(description = "This method tests the getConfiguration method of ConfigurationManagementService under valid "
        + "conditions")
public void testGetConfigurationWithSuccessConditions() throws ConfigurationManagementException {

    PowerMockito.stub(PowerMockito.method(PolicyManagerUtil.class, "getMonitoringFrequency")).toReturn(60);
    PowerMockito.stub(PowerMockito.method(DeviceMgtAPIUtils.class, "getPlatformConfigurationManagementService"))
            .toReturn(platformConfigurationManagementService);
    Mockito.doReturn(platformConfiguration).when(platformConfigurationManagementService)
            .getConfiguration(Mockito.any());
    Response response = configurationManagementService.getConfiguration("test");
    Assert.assertEquals(response.getStatus(), Response.Status.OK.getStatusCode(),
            "getConfiguration request " + "failed with valid parameters");
    List<ConfigurationEntry> configurationEntryList = new ArrayList<>();
    ConfigurationEntry configurationEntry = new ConfigurationEntry();
    configurationEntry.setContentType("String");
    configurationEntry.setName("test");
    configurationEntry.setValue("test");
    configurationEntryList.add(configurationEntry);
    platformConfiguration.setConfiguration(configurationEntryList);
    Mockito.reset(platformConfigurationManagementService);
    Mockito.doReturn(platformConfiguration).when(platformConfigurationManagementService)
            .getConfiguration(Mockito.any());
    response = configurationManagementService.getConfiguration("test");
    Assert.assertEquals(response.getStatus(), Response.Status.OK.getStatusCode(),
            "getConfiguration request " + "failed with valid parameters");
}