@Test
public void testSetParameters() throws Exception {

    IRule rule = new MMElementRule();
    Object[] params = new Object[2];
    params[0] = MMElementRule.Database.DNP;
    params[1] = MMElementRule.RangeMass.Minus1000;
    rule.setParameters(params);
    Object[] objects = rule.getParameters();
    Assert.assertSame(MMElementRule.Database.DNP, objects[0]);
    Assert.assertSame(MMElementRule.RangeMass.Minus1000, objects[1]);
}