Map<String, String> languages = Maps.newHashMap();
languages.put("english", "en");
languages.put("french", "fr");
ResourceConfig rc = new ResourceConfig(UriConnegLanguageMediaTypeTest.LanguageVariantResource.class);
rc.property(ServerProperties.MEDIA_TYPE_MAPPINGS, "foo : application/foo, bar : application/bar");
rc.property(ServerProperties.LANGUAGE_MAPPINGS, "english : en, french : fr");
return rc;
}
}