@everywhere Random.seed!(42)
weights = rand(400)
weights = weights/sum(weights)
test_sys_resample = SMC.resample(weights, method = :systematic)
test_multi_resample = SMC.resample(weights, method = :multinomial)
test_poly_resample = SMC.resample(weights, method = :polyalgo)

saved_sys_resample = load("$path/../../reference/resample.jld2", "sys")
saved_multi_resample = load("$path/../../reference/resample.jld2", "multi")
saved_poly_resample = load("$path/../../reference/resample.jld2", "poly")

####################################################################
@testset "Resampling methods" begin
    @test test_sys_resample == saved_sys_resample
    @test test_multi_resample == saved_multi_resample
    @test test_poly_resample == saved_poly_resample
end
