BlockImpl extends BaseLocatable implements Block, BodyPageElement, RenderCommand { public void render(MarkupWriter writer, RenderQueue queue) { int count = elements.size(); for (int i = count - 1; i >= 0; i--) queue.push(elements.get(i)); } BlockImpl(Location location, String description); void addToBody(RenderCommand element); void render(MarkupWriter writer, RenderQueue queue); @Override String toString();  }
@Test public void empty_block() { BlockImpl block = new BlockImpl(null, null); RenderQueue queue = mockRenderQueue(); MarkupWriter writer = mockMarkupWriter(); replay(); block.render(writer, queue); verify(); }