AtomContainerBoundsGenerator implements IGenerator<IAtomContainer> { @Override public IRenderingElement generate(IAtomContainer container, RendererModel model) { double[] minMax = GeometryUtil.getMinMax(container); return new RectangleElement(minMax[0], minMax[1], minMax[2], minMax[3], new Color(.7f, .7f, 1.0f)); }  @Override IRenderingElement generate(IAtomContainer container, RendererModel model); @Override List<IGeneratorParameter<?>> getParameters();  }
@Test public void testEmptyContainer() { IAtomContainer emptyContainer = super.builder.newInstance(IAtomContainer.class); IRenderingElement root = generator.generate(emptyContainer, model); List<IRenderingElement> elements = elementUtil.getAllSimpleElements(root); Assert.assertEquals(1, elements.size()); }