MolecularFormulaChecker { public List<IRule> getRules() { return rules; } MolecularFormulaChecker(List<IRule> rules); List<IRule> getRules(); Double isValidSum(IMolecularFormula formula); IMolecularFormula isValid(IMolecularFormula formula);  }
@Test public void testGetRules() { MolecularFormulaChecker MFChecker = new MolecularFormulaChecker(new ArrayList<IRule>()); Assert.assertNotNull(MFChecker.getRules()); }