@Test
public void testGenerate() throws Exception {

    AtomHashGenerator seedMock = mock(AtomHashGenerator.class);
    IAtomContainer container = mock(IAtomContainer.class);
    AtomHashGenerator generator = new BasicAtomHashGenerator(seedMock, new Xorshift(), 0);
    when(seedMock.generate(container)).thenReturn(new long[0]);
    when(container.bonds()).thenReturn(new Iterable<IBond>() {
        @Override
        public Iterator<IBond> iterator() {
            return new Iterator<IBond>() {
                @Override
                public boolean hasNext() {
                    return false;
                }
                @Override
                public IBond next() {
                    return null;
                }
                @Override
                public void remove() {
                }
            };
        }
    });
    generator.generate(container);
    verify(seedMock, times(1)).generate(container);
}