@Test
public void testSetGetBaseline() throws Exception {
long now = System.currentTimeMillis();
Baseline baseline = new Baseline(0.0,2.0,1.0,now);
given()
.contentType(ContentType.XML)
.header(acceptJson)
.body(baseline)
.pathParam("sid", numericScheduleId)
.expect()
.statusCode(201)
.log().ifError()
.when()
.put("/metric/data/{sid}/baseline");
Baseline result =
given()
.header(acceptJson)
.pathParam("sid",numericScheduleId)
.expect()
.statusCode(200)
.log().ifError()
.when()
.get("/metric/data/{sid}/baseline")
.as(Baseline.class);
assert result.equals(baseline);
}