@Test
public void testGetAllLoadBalancers() throws Exception {

    GetAllLoadBalancersRequest request = GetAllLoadBalancersRequest.newBuilder().setPage(NEXT_PAGE_OF_1).build();
    GetAllLoadBalancersResult response = GetAllLoadBalancersResult.newBuilder()
            .setPagination(SpringMockMvcUtil.paginationOf(NEXT_PAGE_OF_1))
            .addJobLoadBalancers(GET_JOB_LOAD_BALANCERS_RESULT)
            .build();
    when(serviceMock.getAllLoadBalancers(request, JUNIT_REST_CALL_METADATA)).thenReturn(Observable.just(response));
    GetAllLoadBalancersResult entity = SpringMockMvcUtil.doPaginatedGet(mockMvc, "/api/v3/loadBalancers", GetAllLoadBalancersResult.class, NEXT_PAGE_OF_1);
    assertThat(entity).isEqualTo(response);
    verify(serviceMock, times(1)).getAllLoadBalancers(request, JUNIT_REST_CALL_METADATA);
}