public class UnsupportedMediaTypeExceptionMapperTest extends
TestExceptionMapperBase {
@Test
public void handleException() {
UnsupportedMediaTypeException nae =
new UnsupportedMediaTypeException("unacceptable");
UnsupportedMediaTypeExceptionMapper naem =
injector.getInstance(UnsupportedMediaTypeExceptionMapper.class);
Response r = naem.toResponse(nae);
assertEquals(415, r.getStatus());
verifyMessage(r, rtmsg("unacceptable"));