@Test
public void testRightConfigurationValue() {

    Response response = configurationService.getConfigurationValue("ranger-yarn-plugin-properties", "ranger-yarn-plugin-enabled");
    JSONObject jsonObject = (JSONObject) response.getEntity();
    JSONArray arr = (JSONArray) jsonObject.get("configs");
    Assert.assertEquals(arr.size(), 1);
    JSONObject obj = (JSONObject) arr.get(0);
    Assert.assertEquals(obj.get("siteName"), "ranger-yarn-plugin-properties");
    Assert.assertEquals(obj.get("configName"), "ranger-yarn-plugin-enabled");
    Assert.assertEquals(obj.get("configValue"), "Yes"); // because I set it myself.
}