Question: I'm trying to create jsp page which will create a svg graphic file. Based on various examples of jsp pages and svgs i come with this:

```
<?xml version="1.0" encoding="UTF-8"?> 

<%@ page language="java" contentType="image/svg+xml; charset=UTF-8;"    pageEncoding="UTF-8"%>

<%
response.addHeader(
        "Content-Disposition","attachment; filename=blob3" );
%>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="140" width="140" viewBox="0 0 14 14">
  <circle cx="7" cy="7" r="6" fill="blue" />
</svg>

```

but it is not working. it allows me to download blob3.svg file, but it is empty file.

Can anyone could give me hint, what i'm doing wrong?

Answer: 
Assuming others will find this question when having the `overloaded method value thenReturn with alternatives` error, I want to share my solution as well.

Instead of

`when(field.getValue(isA(classOf[Record]))).thenReturn(value)`

I use

`doReturn(value).when(field).getValue(isA(classOf[Record]))`

which resolves the disambiguity in my case.
I tried Steve's solution and got a huge compiler error including:

```
scala.tools.nsc.symtab.Types$TypeError: type mismatch;
 found   : scala.reflect.Manifest[Nothing]
 required: scala.reflect.ClassManifest[B]
Note: Nothing <: B, but trait ClassManifest is invariant in type T.
You may wish to investigate a wildcard type such as `_ <: B`. (SLS 3.2.10)

```

I was able to make it work with something like:

```
thenReturn("something", Seq.empty[Object]: _*)

```