String[] acceptHeaders = {"test/string1;q=.8", "test/string2;q=.7"};
expect(requestMock.getHeaderNames()).andReturn(
Collections.singleton(HeaderName.ACCEPT)).anyTimes();
expect(requestMock.getHeaderValues(HeaderName.ACCEPT))
.andReturn(acceptHeaders).anyTimes();
RequestURI requestURI = EasyMock.createNiceMock(RequestURI.class);
expect(requestURI.getPath()).andReturn("/");
expect(requestMock.getRequestURI()).andReturn(requestURI).anyTimes();
replay(requestMock);
replay(requestURI);
handler.handle(requestMock, responseImpl);
responseImpl.consumeBody();