RDBERule implements IRule { @Override public Object[] getParameters() { Object[] params = new Object[2]; params[0] = min; params[1] = max; return params; } RDBERule(); @Override void setParameters(Object[] params); @Override Object[] getParameters(); @Override double validate(IMolecularFormula formula); boolean validate(IMolecularFormula formula, double value); List<Double> getRDBEValue(IMolecularFormula formula);  }
@Test public void testDefault() throws ClassNotFoundException, CDKException, Exception { IRule rule = new RDBERule(); Object[] objects = rule.getParameters(); Assert.assertEquals(2, objects.length); double min = (Double) objects[0]; double max = (Double) objects[1]; Assert.assertEquals(-0.5, min, 0.00001); Assert.assertEquals(30, max, 0.00001); }