@Test
public void testGeometric_2D() throws Exception {

    IAtom l = mock(IAtom.class); // 0
    IAtom r = mock(IAtom.class); // 1
    IAtom l1 = mock(IAtom.class); // 2
    IAtom l2 = mock(IAtom.class); // 3
    IAtom r1 = mock(IAtom.class); // 4
    IAtom r2 = mock(IAtom.class); // 5
    IAtomContainer m = mock(IAtomContainer.class);
    when(m.getAtom(0)).thenReturn(l);
    when(m.getAtom(1)).thenReturn(r);
    when(m.getAtom(2)).thenReturn(l1);
    when(m.getAtom(3)).thenReturn(l2);
    when(m.getAtom(4)).thenReturn(r1);
    when(m.getAtom(5)).thenReturn(r2);
    when(l.getPoint2d()).thenReturn(new Point2d());
    when(r.getPoint2d()).thenReturn(new Point2d());
    when(l1.getPoint2d()).thenReturn(new Point2d());
    when(l2.getPoint2d()).thenReturn(new Point2d());
    when(r1.getPoint2d()).thenReturn(new Point2d());
    when(r2.getPoint2d()).thenReturn(new Point2d());
    GeometricParity p = geometric(m, 0, 1, 2, 3, 4, 5);
    assertTrue(p instanceof DoubleBond2DParity);
}