@Test
public void testAccept_CumulatedDoubleBond() throws Exception {

    IAtom atom = mock(IAtom.class);
    IBond a = mock(IBond.class);
    IBond b = mock(IBond.class);
    IBond c = mock(IBond.class);
    List<IBond> bonds = Arrays.asList(a, b, c);
    when(atom.getHybridization()).thenReturn(IAtomType.Hybridization.SP2);
    when(a.getOrder()).thenReturn(IBond.Order.DOUBLE);
    assertTrue(GeometricDoubleBondEncoderFactory.accept(atom, bonds));
    when(b.getOrder()).thenReturn(IBond.Order.DOUBLE);
    assertFalse(GeometricDoubleBondEncoderFactory.accept(atom, bonds));
}