### Question:
RESTService { @GET @Context @Path("/entities") @Produces(MediaType.APPLICATION_JSON) public Map<String, List<String>> getEntities(@Context ServletContext context) { logger.info("REST Request - Get all applicable entities"); Map<String, List<String>> entities = applicableEntitesCache.get(ks); if(entities == null){ entities = new LinkedHashMap<>(); List<String> classes = getClasses(context); for (String cls : classes) { List<String> properties = getApplicableProperties(context, cls); if (!properties.isEmpty()) { entities.put(cls, properties); } } applicableEntitesCache.put(ks, entities); } logger.info("Done."); return entities; } 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 testGetEntities() { restService.getEntities(null); }