@Test
public void taskKillTask() throws Exception {

    TaskKillRequest forwardedRequest = TaskKillRequest.newBuilder()
            .setTaskId(TASK_ID_1)
            .setShrink(true)
            .setPreventMinSizeUpdate(true)
            .build();
    when(jobServiceGatewayMock.killTask(forwardedRequest, JUNIT_REST_CALL_METADATA)).thenReturn(Completable.complete());
    SpringMockMvcUtil.doDelete(mockMvc, String.format("/api/v3/tasks/%s", TASK_ID_1), "shrink", "true", "preventMinSizeUpdate", "true");
    verify(jobServiceGatewayMock, times(1)).killTask(forwardedRequest, JUNIT_REST_CALL_METADATA);
}