Response response = get(alerts("1"));
assertThat(response, hasStatusCode(200));
assertThat(response.asJson(), hasJsonPath("$.values", hasSize(0)));
assertThat(response.asJson(), hasJsonPath("$.items", is(20)));
assertThat(response.asJson(), hasJsonPath("$.start", is(0)));
assertThat(response.asJson(), hasJsonPath("$.total", is(0)));
}
@Test
public void testGetAlertsInvalidStart() {
Response response = get(alerts("1").withParam("start", "-1"));