public class MethodNotAllowedExceptionMapperTest extends
TestExceptionMapperBase {
@Test
public void handleMethodNotAllowed() {
MethodNotAllowedException mnae = new MethodNotAllowedException("not allowed");
MethodNotAllowedExceptionMapper mnaem =
injector.getInstance(MethodNotAllowedExceptionMapper.class);
Response r = mnaem.toResponse(mnae);
assertEquals(405, r.getStatus());
verifyMessage(r, rtmsg("not allowed"));