@Test
public void testUpdateSensor() {

    double wifiX = 1.f;
    double wifiY = 5.f;
    pf = new ParticleFilterTestable();
    pf.setNumParticles(2);
    Particle tmp = new Particle(2.f, 4.f, 0.5f);
    pf.particleList.add(tmp);
    tmp = new Particle(20.f, 40.f, 0.5f);
    pf.particleList.add(tmp);
    pf.updateSensor(wifiX, wifiY);
    assertEquals(0.966f, pf.particleList.get(0).getWeight(), 0.01f);
    assertEquals(0.034f, pf.particleList.get(1).getWeight(), 0.01f);
}