### Question:
LienzoCanvasExport implements CanvasExport<AbstractCanvasHandler> { private static LienzoLayer getLayer(final AbstractCanvasHandler canvasHandler) { return ((WiresCanvas) canvasHandler.getCanvas()).getView().getLayer(); } LienzoCanvasExport();   LienzoCanvasExport(final BoundsProvider boundsProvider); @Override IContext2D toContext2D(final AbstractCanvasHandler canvasHandler,
                                  final CanvasExportSettings settings); @Override String toImageData(final AbstractCanvasHandler canvasHandler,
                              final CanvasURLExportSettings settings); static final String BG_COLOR; static final int PADDING; }### Answer:
@Test public void testWiresLayerBoundsProvider() { layer = new Layer(); when(lienzoLayer.getLienzoLayer()).thenReturn(layer); WiresManager wiresManager = WiresManager.get(layer); com.ait.lienzo.client.core.shape.wires.WiresLayer wiresLayer = wiresManager.getLayer(); wiresLayer.add(new WiresShape(new MultiPath().rect(0, 0, 50, 50)).setLocation(new Point2D(12, 44))); wiresLayer.add(new WiresShape(new MultiPath().rect(0, 0, 100, 150)).setLocation(new Point2D(1, 3))); LienzoCanvasExport.WiresLayerBoundsProvider provider = new LienzoCanvasExport.WiresLayerBoundsProvider(); int[] size0 = provider.compute(lienzoLayer, CanvasExportSettings.build()); assertEquals(0, size0[0]); assertEquals(0, size0[1]); assertEquals(151, size0[2]); assertEquals(203, size0[3]); }