### Question:
RESTService { @GET @Context @Path("/properties") @Produces(MediaType.APPLICATION_JSON) public List<String> getApplicableProperties(@Context ServletContext context, @QueryParam("class") String classURI) { logger.info("REST Request - Get all properties for class " + classURI); List<String> properties = propertiesCache.get(classURI); if(properties == null){ properties = new ArrayList<>(); for (OWLObjectProperty p : reasoner.getObjectProperties(new OWLClassImpl(IRI.create(classURI)))) { if(!blackList.contains(p.toStringID())){ properties.add(p.toStringID()); } } Collections.sort(properties); propertiesCache.put(classURI, properties); } logger.info("Done."); return properties; } RESTService(); static void loadConfig(HierarchicalINIConfiguration config); static void loadConfig(HierarchicalINIConfiguration config, ServletContext context); static void init(ServletContext context); @GET @Context @Path("/questionsold") @Produces(MediaType.APPLICATION_JSON) RESTQuestions getQuestionsJSON(@Context ServletContext context, @QueryParam("domain") String domain, @QueryParam("type") List<String> questionTypes, @QueryParam("limit") int maxNrOfQuestions); @POST @Context @Path("/questions") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) RESTQuestions getQuestionsJSON2(@Context ServletContext context, JSONArray domain, @QueryParam("type") List<String> questionTypes, @QueryParam("limit") int maxNrOfQuestions); @GET @Context @Path("/properties") @Produces(MediaType.APPLICATION_JSON) List<String> getApplicableProperties(@Context ServletContext context, @QueryParam("class") String classURI); @GET @Context @Path("/classes") @Produces(MediaType.APPLICATION_JSON) List<String> getClasses(@Context ServletContext context); @GET @Context @Path("/entities") @Produces(MediaType.APPLICATION_JSON) Map<String, List<String>> getEntities(@Context ServletContext context); void precomputeGraphs(ServletContext context); static QueryExecutionFactory qef; }### Answer:
@Test public void testGetApplicableProperties() { restService.getApplicableProperties(null, "http: }