Thanks for reviewing the patch. I can try to put some test with a jetty or
a fake URL connection.

What I really need is somewhere to put in a cache of contexts that have
previously been downloaded, with possibility to warm that cache from
classpath resources so that you could parse json-ld offline.

I found that a bit tricky in the current architecture of static methods
that pass along Objects. I am thinking to either use the existing XML
catalogue mechanism or a static map with weak references.
On 4 Jun 2013 19:42, "Peter Ansell" <notifications@github.com> wrote:

> In core/src/test/java/com/github/jsonldjava/utils/JSONUtilsTest.java:
>
> >  	}
> > +	
> > +	@SuppressWarnings("unchecked")
>
> These resource URL tests are great for testing the basic code.
>
> Would be useful to have a test that verifies the use of the accept headers
> for queries on a running HTTP server. Doesn't necessarily have to be a
> server on the internet if one can be easily started (say Jetty in-memory
> server) just for a single test. Not sure how much work this would be to
> setup but we could possibly reuse it for other tests as well.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/jsonld-java/jsonld-java/pull/55/files#r4530028>
> .
>