// Path: freya/freya-annotate/src/main/java/org/freya/model/service/FreyaResponse.java
// @XmlRootElement
// public class FreyaResponse {
//     
//     String repositoryId;
//     String repositoryUrl;
//     String sparqlQuery;
//     String preciseSparql;
//     Object textResponse;
//     ArrayList clarifications;
//     List<List<HashMap>> table;
//     List<Object> refinementNodes;
//     List<List<SemanticConcept>> semanticConcepts;
//     ArrayList<Object> graph;
//     List<Annotation> annotations = new ArrayList<Annotation>();
// 
//     public String getPreciseSparql() {
//         return preciseSparql;
//     }
// 
//     public void setPreciseSparql(String preciseSparql) {
//         this.preciseSparql = preciseSparql;
//     }
//     public List<Object> getRefinementNodes() {
//         return refinementNodes;
//     }
// 
//     public void setRefinementNodes(List<Object> refinementNodes) {
//         this.refinementNodes = refinementNodes;
//     }
// 
//     public ArrayList getClarifications() {
//         return clarifications;
//     }
// 
//     public void setClarifications(ArrayList clarifications) {
//         this.clarifications = clarifications;
//     }
// 
//     public List<List<HashMap>> getTable() {
//         return table;
//     }
// 
//     public void setTable(List<List<HashMap>> table) {
//         this.table = table;
//     }
// 
//     public ArrayList<Object> getGraph() {
//         return graph;
//     }
// 
//     public void setGraph(ArrayList<Object> graph) {
//         this.graph = graph;
//     }
// 
//     public List<Annotation> getAnnotations() {
//         return annotations;
//     }
// 
//     public void setAnnotations(List<Annotation> annotations) {
//         this.annotations = annotations;
//     }
// 
//     public List<List<SemanticConcept>> getSemanticConcepts() {
//         return semanticConcepts;
//     }
// 
//     public void setSemanticConcepts(List<List<SemanticConcept>> semanticConcepts) {
//         this.semanticConcepts = semanticConcepts;
//     }
// 
//     public Object getTextResponse() {
//         return textResponse;
//     }
// 
//     public void setTextResponse(Object textResponse) {
//         this.textResponse = textResponse;
//     }
// 
//     public String getRepositoryId() {
//         return repositoryId;
//     }
// 
//     public void setRepositoryId(String repositoryId) {
//         this.repositoryId = repositoryId;
//     }
// 
//     public String getRepositoryUrl() {
//         return repositoryUrl;
//     }
// 
//     public void setRepositoryUrl(String repositoryUrl) {
//         this.repositoryUrl = repositoryUrl;
//     }
// 
//     public String getSparqlQuery() {
//         return sparqlQuery;
//     }
// 
//     public void setSparqlQuery(String sparqlQuery) {
//         this.sparqlQuery = sparqlQuery;
//     }
// }


import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import static org.springframework.http.HttpMethod.GET;
import static org.springframework.http.HttpMethod.POST;
import java.net.URI;
import java.util.Map;
import org.freya.model.service.FreyaResponse;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.ApplicationContext;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.web.servlet.DispatcherServlet;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.Maps;
package org.freya.service;



@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath*:META-INF/spring/freya-applicationContext.xml" })
@Configurable
public class FreyaServiceTest {
	private static final Logger log = LoggerFactory.getLogger(FreyaServiceTest.class);
	ObjectMapper objectMapper = new ObjectMapper();
	private static ApplicationContext applicationContext;

	@BeforeClass
	public static void setUpUnitTest() throws Exception {
		applicationContext = new MockWebAppContext("src/main/webapp", "freya");
	}

	@Test
	public void getSparql() throws Exception {
		Map<String, String> parameters = Maps.newHashMap();
		parameters.put("query", "City california.");

// Path: freya/freya-annotate/src/main/java/org/freya/model/service/FreyaResponse.java
// @XmlRootElement
// public class FreyaResponse {
//     
//     String repositoryId;
//     String repositoryUrl;
//     String sparqlQuery;
//     String preciseSparql;
//     Object textResponse;
//     ArrayList clarifications;
//     List<List<HashMap>> table;
//     List<Object> refinementNodes;
//     List<List<SemanticConcept>> semanticConcepts;
//     ArrayList<Object> graph;
//     List<Annotation> annotations = new ArrayList<Annotation>();
// 
//     public String getPreciseSparql() {
//         return preciseSparql;
//     }
// 
//     public void setPreciseSparql(String preciseSparql) {
//         this.preciseSparql = preciseSparql;
//     }
//     public List<Object> getRefinementNodes() {
//         return refinementNodes;
//     }
// 
//     public void setRefinementNodes(List<Object> refinementNodes) {
//         this.refinementNodes = refinementNodes;
//     }
// 
//     public ArrayList getClarifications() {
//         return clarifications;
//     }
// 
//     public void setClarifications(ArrayList clarifications) {
//         this.clarifications = clarifications;
//     }
// 
//     public List<List<HashMap>> getTable() {
//         return table;
//     }
// 
//     public void setTable(List<List<HashMap>> table) {
//         this.table = table;
//     }
// 
//     public ArrayList<Object> getGraph() {
//         return graph;
//     }
// 
//     public void setGraph(ArrayList<Object> graph) {
//         this.graph = graph;
//     }
// 
//     public List<Annotation> getAnnotations() {
//         return annotations;
//     }
// 
//     public void setAnnotations(List<Annotation> annotations) {
//         this.annotations = annotations;
//     }
// 
//     public List<List<SemanticConcept>> getSemanticConcepts() {
//         return semanticConcepts;
//     }
// 
//     public void setSemanticConcepts(List<List<SemanticConcept>> semanticConcepts) {
//         this.semanticConcepts = semanticConcepts;
//     }
// 
//     public Object getTextResponse() {
//         return textResponse;
//     }
// 
//     public void setTextResponse(Object textResponse) {
//         this.textResponse = textResponse;
//     }
// 
//     public String getRepositoryId() {
//         return repositoryId;
//     }
// 
//     public void setRepositoryId(String repositoryId) {
//         this.repositoryId = repositoryId;
//     }
// 
//     public String getRepositoryUrl() {
//         return repositoryUrl;
//     }
// 
//     public void setRepositoryUrl(String repositoryUrl) {
//         this.repositoryUrl = repositoryUrl;
//     }
// 
//     public String getSparqlQuery() {
//         return sparqlQuery;
//     }
// 
//     public void setSparqlQuery(String sparqlQuery) {
//         this.sparqlQuery = sparqlQuery;
//     }
// }


// Path: freya/freya-annotate/src/test/java/org/freya/service/FreyaServiceTest.java
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import static org.springframework.http.HttpMethod.GET;
import static org.springframework.http.HttpMethod.POST;
import java.net.URI;
import java.util.Map;
import org.freya.model.service.FreyaResponse;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.ApplicationContext;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.web.servlet.DispatcherServlet;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.Maps;

package org.freya.service;



@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath*:META-INF/spring/freya-applicationContext.xml" })
@Configurable
public class FreyaServiceTest {
	private static final Logger log = LoggerFactory.getLogger(FreyaServiceTest.class);
	ObjectMapper objectMapper = new ObjectMapper();
	private static ApplicationContext applicationContext;

	@BeforeClass
	public static void setUpUnitTest() throws Exception {
		applicationContext = new MockWebAppContext("src/main/webapp", "freya");
	}

	@Test
	public void getSparql() throws Exception {
		Map<String, String> parameters = Maps.newHashMap();
		parameters.put("query", "City california.");

		FreyaResponse expected = new FreyaResponse();