class ProcessInstanceManagementResource extends BaseProcessInstanceManagementResource<Response> {

    @Override
    @DELETE
    @Path("{processId}/instances/{processInstanceId}")
    @Produces(MediaType.APPLICATION_JSON)
    public Response cancelProcessInstanceId(@PathParam("processId") String processId, @PathParam("processInstanceId") String processInstanceId) {
        return doCancelProcessInstanceId(processId, processInstanceId);
    }

}

class ProcessInstanceManagementResourceTest {

    public static final String MESSAGE;
    public static final String PROCESS_ID;
    public static final String PROCESS_INSTANCE_ID;
    public static final String NODE_ID;
    private static RuntimeDelegate runtimeDelegate;
    private ResponseBuilder responseBuilder;
    private Processes processes;
    @SuppressWarnings("rawtypes")
    private ProcessInstance processInstance;
    private ProcessError error;
    private Application application;
    private ProcessInstanceManagementResource resource;

    @Test
    public void testCancelProcessInstanceId() {

        resource.cancelProcessInstanceId(PROCESS_ID, PROCESS_INSTANCE_ID);
        verify(resource).doCancelProcessInstanceId(PROCESS_ID, PROCESS_INSTANCE_ID);
    }

}