@Test
public void generateElementTest() {

    IAtom atom = super.builder.newInstance(IAtom.class, "C");
    atom.setPoint2d(new Point2d(2, 3));
    atom.setImplicitHydrogenCount(0);
    int alignment = 1;
    AtomSymbolElement element = generator.generateElement(atom, alignment, model);
    Assert.assertEquals(atom.getPoint2d().x, element.xCoord, 0.01);
    Assert.assertEquals(atom.getPoint2d().y, element.yCoord, 0.01);
    Assert.assertEquals(atom.getSymbol(), element.text);
    Assert.assertEquals((int) atom.getFormalCharge(), element.formalCharge);
    Assert.assertEquals((int) atom.getImplicitHydrogenCount(), element.hydrogenCount);
    Assert.assertEquals(alignment, element.alignment);
    Assert.assertEquals(generator.getAtomColor(atom, model), element.color);
}