@Test
public void createExplicitH() throws Exception {

    IAtomContainer container = mock(IAtomContainer.class);
    when(container.getAtomCount()).thenReturn(5);
    IAtom c1 = mock(IAtom.class);
    IAtom o2 = mock(IAtom.class);
    IAtom n3 = mock(IAtom.class);
    IAtom c4 = mock(IAtom.class);
    IAtom h5 = mock(IAtom.class);
    when(container.getAtom(0)).thenReturn(c1);
    when(container.getAtom(1)).thenReturn(o2);
    when(container.getAtom(2)).thenReturn(n3);
    when(container.getAtom(3)).thenReturn(c4);
    when(container.getAtom(4)).thenReturn(h5);
    when(container.atoms()).thenReturn(Arrays.asList(c1, o2, n3, c4, h5));
    ITetrahedralChirality tc = mock(ITetrahedralChirality.class);
    when(tc.getChiralAtom()).thenReturn(c1);
    when(tc.getLigands()).thenReturn(new IAtom[]{o2, n3, c4, h5});
    when(tc.getStereo()).thenReturn(ITetrahedralChirality.Stereo.CLOCKWISE);
    when(container.stereoElements()).thenReturn(Collections.<IStereoElement> singleton(tc));
    StereoEncoder encoder = new TetrahedralElementEncoderFactory().create(container, new int[0][0]); // graph not used
    assertThat(getGeometricParity(encoder).parity(), is(-1)); // clockwise
}