@Test
public void shouldGetPreviousPage() throws SDKException {
// Given
String url = "/measuremnt/measurments";
TestCollectionRepresentation input = new TestCollectionRepresentation();
input.setPrev(url);
TestCollectionRepresentation expectedResult = new TestCollectionRepresentation();
when(restConnector.get(url, MEDIA_TYPE, CLAZZ)).thenReturn(expectedResult);
// When
TestCollectionRepresentation prevPage = target.getPreviousPage(input);
// Then
assertThat(prevPage, is(expectedResult));
}