@Test
public void allParameters() throws Exception {

  when(request.getURI()).thenReturn(
      URI.create("ws://localhost/offramp/v2/roads/road1/streams/stream1/messages?defaultOffset=EARLIEST&grants=PII"));
  Map<String, Object> attributes = new HashMap<>();
  underTest.beforeHandshake(request, null, null, attributes);
  assertThat(attributes.get(ROAD_NAME), is("road1"));
  assertThat(attributes.get(STREAM_NAME), is("stream1"));
  assertThat(attributes.get(DEFAULT_OFFSET), is(EARLIEST));
  assertThat(attributes.get(GRANTS), is(singleton(PII)));
}