@Test
public void testEncode() throws Exception {

    AtomEncoder a = mock(AtomEncoder.class);
    AtomEncoder b = mock(AtomEncoder.class);
    AtomEncoder c = mock(AtomEncoder.class);
    IAtom atom = mock(IAtom.class);
    IAtomContainer container = mock(IAtomContainer.class);
    AtomEncoder encoder = new ConjugatedAtomEncoder(Arrays.asList(a, b, c));
    encoder.encode(atom, container);
    InOrder order = inOrder(a, b, c);
    order.verify(a, times(1)).encode(atom, container);
    order.verify(b, times(1)).encode(atom, container);
    order.verify(c, times(1)).encode(atom, container);
    verifyNoMoreInteractions(a, b, c, atom, container);
}