### Question:
SVGScriptService implements ScriptService { public boolean rasterizeToResponse(String content) { return rasterizeToResponse(content, 0, 0); }  ExtendedURL rasterizeToTemporaryResource(String content); ExtendedURL rasterizeToTemporaryResource(String content, int width, int height); ExtendedURL rasterizeToTemporaryResource(String content, DocumentReference targetContext); ExtendedURL rasterizeToTemporaryResource(String content, int width, int height,
        DocumentReference targetContext); boolean rasterizeToResponse(String content); boolean rasterizeToResponse(String content, int width, int height);  }### Answer:
@Test public void rasterizeToResponseForwardsCalls() throws Exception { Assert.assertTrue(this.mocker.getComponentUnderTest().rasterizeToResponse(SVG)); }
@Test public void rasterizeToResponseCatchesExceptions() throws Exception { Mockito.doThrow(new IOException()).when(this.internal).rasterizeToResponse(SVG, 0, 0); Assert.assertFalse(this.mocker.getComponentUnderTest().rasterizeToResponse(SVG)); }
@Test public void rasterizeToResponseWithSizeForwardsCalls() throws Exception { Assert.assertTrue(this.mocker.getComponentUnderTest().rasterizeToResponse(SVG, 100, 200)); }
@Test public void rasterizeToResponseWithSizeCatchesExceptions() throws Exception { Mockito.doThrow(new IOException()).when(this.internal).rasterizeToResponse(SVG, 100, 200); Assert.assertFalse(this.mocker.getComponentUnderTest().rasterizeToResponse(SVG, 100, 200)); }