final HttpGet get = new HttpGet(URI.create(server.getEndpoint().toString() + "aaa;n=2/"));
final HttpResponse response = httpClient.execute(get);
assertEquals(HttpStatusCodes.OK.getStatusCode(), response.getStatusLine().getStatusCode());
final ODataContext ctx = service.getProcessor().getContext();
assertNotNull(ctx);
assertEquals("", ctx.getPathInfo().getODataSegments().get(0).getPath());
assertEquals("aaa", ctx.getPathInfo().getPrecedingSegments().get(0).getPath());
assertNotNull(ctx.getPathInfo().getPrecedingSegments().get(0).getMatrixParameters());
String key, value;
key = ctx.getPathInfo().getPrecedingSegments().get(0).getMatrixParameters().keySet().iterator().next();
assertEquals("n", key);
value = ctx.getPathInfo().getPrecedingSegments().get(0).getMatrixParameters().get(key).get(0);
assertEquals("2", value);
}