BondEnergy { public int getEnergy() { return energy; } BondEnergy(String symbol1, String symbol2, IBond.Order order, int energy); String getSymbolFirstAtom(); String getSymbolSecondAtom(); IBond.Order getBondOrder(); int getEnergy(); boolean matches(IBond bond);  }
@Test public void testGetEnergy() { BondEnergy instance = new BondEnergy("H", "I", Order.SINGLE, 295); int expResult = 295; int result = instance.getEnergy(); assertEquals(expResult, result); }