/**
* Test related to STANBOL-698
*/
@Test
public void testDouble(){
Model graph = new TreeModel();
URI id = vf.createURI("http://www.example.org/test");
URI doubleTestField = vf.createURI("http://www.example.org/field/double");
graph.add(id, doubleTestField, vf.createLiteral(Double.NaN));
graph.add(id, doubleTestField, vf.createLiteral(Double.POSITIVE_INFINITY));
graph.add(id, doubleTestField, vf.createLiteral(Double.NEGATIVE_INFINITY));
RdfValueFactory valueFactory = new RdfValueFactory(graph,vf);
Representation r = valueFactory.createRepresentation(id.stringValue());
Set<Double> expected = new HashSet<Double>(Arrays.asList(
Double.NaN, Double.POSITIVE_INFINITY,Double.NEGATIVE_INFINITY));