HttpTest annotation = createAnnotation( "/people/{id}/{name}" );
when( description.getAnnotation( HttpTest.class ) ).thenReturn( annotation );
RequestConfiguration config = new RequestConfiguration( "http://www.fake.com",
description,
new Object() );
RequestContext context = new RequestContext();
context.addPathSegment( "id", "12345" );
context.addPathSegment( "name", "name" );
InternalRequest request = config.createRequest( context );
assertEquals( "http://www.fake.com/people/12345/name", request.getUrl() );
}