}
@When("I should get previous page which has current page '(\\d+)' and events '(\\d+)'$")
public void iQueryAllByPreviousPage(int currentPage, int numEvents) throws SDKException {
try {
EventCollectionRepresentation collectionRepresentation = eventApi.getEvents().getPreviousPage(collection1);
assertThat(currentPage, is(equalTo(collectionRepresentation.getPageStatistics().getCurrentPage())));
assertThat(numEvents, is(equalTo(collectionRepresentation.getEvents().size())));
} catch (SDKException ex) {
status = ex.getHttpStatus();
}
}