SvgDrawContext { public int size() { return canvases.size(); } SvgDrawContext(ResourceResolver resourceResolver, FontProvider fontProvider);  SvgDrawContext(ResourceResolver resourceResolver, FontProvider fontProvider, ISvgNodeRenderer svgRootRenderer); PdfCanvas getCurrentCanvas(); PdfCanvas popCanvas(); void pushCanvas(PdfCanvas canvas); int size(); void addViewPort(Rectangle viewPort); Rectangle getCurrentViewPort(); Rectangle getRootViewPort(); void removeCurrentViewPort(); void addNamedObject(String name, ISvgNodeRenderer namedObject); ISvgNodeRenderer getNamedObject(String name); ResourceResolver getResourceResolver(); void addNamedObjects(Map<String, ISvgNodeRenderer> namedObjects); FontProvider getFontProvider(); FontSet getTempFonts(); void setTempFonts(FontSet tempFonts); boolean isIdUsedByUseTagBefore(String elementId); void addUsedId(String elementId); void removeUsedId(String elementId); AffineTransform getLastTextTransform(); void setLastTextTransform(AffineTransform newTransform); float[] getTextMove(); void resetTextMove(); void addTextMove(float additionalMoveX, float additionalMoveY); AffineTransform getCurrentCanvasTransform(); float getRemValue();  }
@Test public void drawContextEmptyStackCountTest() { Assert.assertEquals(0, context.size()); }