NitrogenRule implements IRule { @Override public void setParameters(Object[] params) throws CDKException { if (params != null) throw new CDKException("NitrogenRule doesn't expect parameters"); } NitrogenRule(); @Override void setParameters(Object[] params); @Override Object[] getParameters(); @Override double validate(IMolecularFormula formula);  }
@Test public void testSetParameters() throws ClassNotFoundException, CDKException, Exception { IRule rule = new NitrogenRule(); rule.setParameters(null); Object[] objects = rule.getParameters(); Assert.assertNull(objects); }