@Test
public void testGetAllScalingPolicies() throws Exception {

    when(serviceMock.getAllScalingPolicies(JUNIT_REST_CALL_METADATA)).thenReturn(Observable.just(GET_POLICY_RESULT));
    GetPolicyResult entity = SpringMockMvcUtil.doGet(mockMvc, "/api/v3/autoscaling/scalingPolicies", GetPolicyResult.class);
    assertThat(entity).isEqualTo(GET_POLICY_RESULT);
    verify(serviceMock, times(1)).getAllScalingPolicies(JUNIT_REST_CALL_METADATA);
}