@Test
public void testExceptionOnWrongConfigurationValue() {

    Response response = configurationService.getConfigurationValue("random-site", "random-key");
    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"), "random-site");
    Assert.assertEquals(obj.get("configName"), "random-key");
    Assert.assertEquals(obj.get("configValue"), null);
}