layout.setLocationInfo(false);
logger.warn("warning dawg");
String message = appender.getMessages()[0];
Object obj = JSONValue.parse(message);
JSONObject jsonObject = (JSONObject) obj;
Assert.assertFalse("atFields contains file value", jsonObject.containsKey("file"));
Assert.assertFalse("atFields contains line_number value", jsonObject.containsKey("line_number"));
Assert.assertFalse("atFields contains class value", jsonObject.containsKey("class"));
Assert.assertFalse("atFields contains method value", jsonObject.containsKey("method"));
// Revert the change to the layout to leave it as we found it.
layout.setLocationInfo(prevLocationInfo);
}