public void testOptions() throws Exception {
JaxRsHandler handler = HandlerCreator.getHandler(MyResource.class);
Request requestMock = EasyMock.createNiceMock(Request.class);
Response responseMock = EasyMock.createNiceMock(Response.class);
expect(requestMock.getMethod()).andReturn(Method.GET).anyTimes();
RequestURI requestURI = EasyMock.createNiceMock(RequestURI.class);
expect(requestURI.getPath()).andReturn("/path");
expect(requestMock.getRequestURI()).andReturn(requestURI).anyTimes();
responseMock.setResponseStatus(ResponseStatus.NOT_FOUND);
EasyMock.makeThreadSafe(responseMock, true);
replay(requestMock);
replay(requestURI);
replay(responseMock);
//handler.handle(requestMock, response);