@Test
public void testUpdateScalingPolicy() throws Exception {

    UpdatePolicyRequest request = UpdatePolicyRequest.newBuilder().build();
    when(serviceMock.updateAutoScalingPolicy(request, JUNIT_REST_CALL_METADATA)).thenReturn(Completable.complete());
    SpringMockMvcUtil.doPut(mockMvc, "/api/v3/autoscaling/scalingPolicy", request);
    verify(serviceMock, times(1)).updateAutoScalingPolicy(request, JUNIT_REST_CALL_METADATA);
}