### Question:
SVGScriptService implements ScriptService { public ExtendedURL rasterizeToTemporaryResource(String content) { return rasterizeToTemporaryResource(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 rasterizeToTemporaryResource1PForwardsCallsAndNormalizesResult() throws Exception { Assert.assertSame(this.eurl, this.mocker.getComponentUnderTest().rasterizeToTemporaryResource(SVG)); }
@Test public void rasterizeToTemporaryResource1PCatchesExceptionsAndReturnsNull() throws Exception { when(this.internal.rasterizeToTemporaryResource(SVG, 0, 0)).thenThrow(new NullPointerException()); Assert.assertNull(this.mocker.getComponentUnderTest().rasterizeToTemporaryResource(SVG)); }
@Test public void rasterizeToTemporaryResource2PForwardsCallsAndNormalizesResult() throws Exception { Assert.assertSame(this.eurl, this.mocker.getComponentUnderTest().rasterizeToTemporaryResource(SVG, this.dref)); }
@Test public void rasterizeToTemporaryResource2PCatchesExceptionsAndReturnsNull() throws Exception { when(this.internal.rasterizeToTemporaryResource(SVG, 0, 0, this.dref)).thenThrow(new NullPointerException()); Assert.assertNull(this.mocker.getComponentUnderTest().rasterizeToTemporaryResource(SVG, this.dref)); }
@Test public void rasterizeToTemporaryResource3PForwardsCallsAndNormalizesResult() throws Exception { Assert.assertSame(this.eurl, this.mocker.getComponentUnderTest().rasterizeToTemporaryResource(SVG, 100, 200)); }
@Test public void rasterizeToTemporaryResource3PCatchesExceptionsAndReturnsNull() throws Exception { when(this.internal.rasterizeToTemporaryResource(SVG, 100, 200)).thenThrow(new NullPointerException()); Assert.assertNull(this.mocker.getComponentUnderTest().rasterizeToTemporaryResource(SVG, 100, 200)); }
@Test public void rasterizeToTemporaryResource4PForwardsCallsAndNormalizesResult() throws Exception { Assert.assertSame(this.eurl, this.mocker.getComponentUnderTest().rasterizeToTemporaryResource(SVG, 100, 200, this.dref)); }
@Test public void rasterizeToTemporaryResource4PCatchesExceptionsAndReturnsNull() throws Exception { when(this.internal.rasterizeToTemporaryResource(SVG, 100, 200, this.dref)) .thenThrow(new NullPointerException()); Assert.assertNull(this.mocker.getComponentUnderTest().rasterizeToTemporaryResource(SVG, 100, 200, this.dref)); }