What experiment? Unlike medicine, vaccines use the body's own mechanism just the way the body itself uses it. By exposing the body to something potentially dangerous, the only difference to "natural" infection is that in the latter case the body will take damage, sometimes incurable damage, before figuring out which proteins belong to the enemy. Vaccines do the same just without, or with way less risk of damage.