Context2DFactory { public static IContext2D create(SvgExportSettings settings){ return new C2SContext2D(settings.getWidth(), settings.getHeight(), settings.getContext()); }  static IContext2D create(SvgExportSettings settings);  }
@Test public void testCreate() { final CanvasRenderingContext2D nativeContext = mock(CanvasRenderingContext2D.class); final SvgExportSettings settings = new SvgExportSettings(100, 100, nativeContext); final IContext2D context2D = context2DFactory.create(settings); assertTrue(C2SContext2D.class.isInstance(context2D)); }