SVGParser { public static SVG getSVGFromInputStream(InputStream svgData) throws SVGParseException { return SVGParser.parse(svgData, 0, 0, false); }  static SVG getSVGFromInputStream(InputStream svgData); static SVG getSVGFromInputStream(InputStream svgData, int targetWidth, int targetHeight); static SVG getSVGFromResource(Resources resources, int resId); static SVG getSVGFromAsset(AssetManager assetMngr, String svgPath); static SVG getSVGFromInputStream(InputStream svgData, int searchColor, int replaceColor,
                                            int targetWidth, int targetHeight); static SVG getSVGFromString(String svgData, int searchColor, int replaceColor); static SVG getSVGFromResource(Resources resources, int resId, int searchColor, int replaceColor); static SVG getSVGFromAsset(AssetManager assetMngr, String svgPath, int searchColor, int replaceColor); static Path parsePath(String pathString);  }
@Test public void parseShape() { InputStream resourceAsStream = this.getClass().getResourceAsStream("shape_star.svg"); assertThat(SVGParser.getSVGFromInputStream(resourceAsStream, 0, 0), is(not(nullValue()))); }