@Test
public void testSetParameters() throws Exception {

    IRule rule = new ToleranceRangeRule();
    Object[] params = new Object[2];
    params[0] = 133.0;
    params[1] = 0.00005;
    rule.setParameters(params);
    Object[] objects = rule.getParameters();
    Assert.assertEquals(2, objects.length);
    double mass = (Double) objects[0];
    Assert.assertEquals(133.0, mass, 0.00001);
    double tolerance = (Double) objects[1];
    Assert.assertEquals(0.00005, tolerance, 0.00001);
}